add label to pam loops
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-11-10 13:26:43 +01:00
parent e524225a4a
commit 972fb1d0f9

View File

@ -12,6 +12,8 @@
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:
@ -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