add label to pam loops
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e524225a4a
commit
972fb1d0f9
@ -12,6 +12,8 @@
|
||||
state: "{{ item.state | default('args_present') }}"
|
||||
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
||||
loop: "{{ pam_settings + pam_settings_extra }}"
|
||||
loop_control:
|
||||
label: "{{ item.name | default('system-auth') }}:{{ item.state | default('args_present') }}: {{ item.new_type | default(item.type) | default('auth') }} {{ item.new_control | default(item.control) }} {{ item.new_module_path | default(item.module_path) | default('pam_unix.so') }} {{ item.module_arguments | default([]) | join(' ') }}"
|
||||
|
||||
- name: Auto-update items with state before/after
|
||||
pamd:
|
||||
@ -22,6 +24,8 @@
|
||||
state: updated
|
||||
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
||||
loop: "{{ pam_settings + pam_settings_extra }}"
|
||||
loop_control:
|
||||
label: "{{ item.name | default('system-auth') }}:{{ item.state | default('args_present') }}: {{ item.new_type | default(item.type) | default('auth') }} {{ item.new_control | default(item.control) }} {{ item.new_module_path | default(item.module_path) | default('pam_unix.so') }} {{ item.module_arguments | default([]) | join(' ') }}"
|
||||
when: item.state | default("args_present") == "before" or item.state | default("args_present") == "after"
|
||||
become: True
|
||||
become_user: root
|
||||
|
Loading…
Reference in New Issue
Block a user