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,7 +12,9 @@
|
|||||||
state: "{{ item.state | default('args_present') }}"
|
state: "{{ item.state | default('args_present') }}"
|
||||||
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
||||||
loop: "{{ pam_settings + pam_settings_extra }}"
|
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
|
- name: Auto-update items with state before/after
|
||||||
pamd:
|
pamd:
|
||||||
name: "{{ item.name | default('system-auth') }}"
|
name: "{{ item.name | default('system-auth') }}"
|
||||||
@ -22,6 +24,8 @@
|
|||||||
state: updated
|
state: updated
|
||||||
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
module_arguments: "{{ item.module_arguments | default(omit) }}"
|
||||||
loop: "{{ pam_settings + pam_settings_extra }}"
|
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"
|
when: item.state | default("args_present") == "before" or item.state | default("args_present") == "after"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user