Properly resolve pam_auth_file in a loop
Since ansible-core 2.19 we should use variable directly, and do not attempt to resolve a variable inside of jinja defenition, as this is considered as unsafe. Change-Id: Ic10a27c0e7b9556eb307b05d9f7a1b3e52667a8e Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
line: "\\1\\2"
|
||||
backup: true
|
||||
backrefs: true
|
||||
loop: "{{ ['auth', 'password'] | product(['{{ pam_auth_file }}', '{{ pam_password_file }}']) | list }}"
|
||||
loop: "{{ ['auth', 'password'] | product([pam_auth_file, pam_password_file]) | list }}"
|
||||
when:
|
||||
- ansible_facts['os_family'] == 'RedHat'
|
||||
- security_disallow_blank_password_login | bool
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
enabled: false
|
||||
when:
|
||||
- kdump_service_check.rc not in [3,4]
|
||||
- security_disable_kdump
|
||||
- security_disable_kdump | bool
|
||||
tags:
|
||||
- kernel
|
||||
- medium
|
||||
|
||||
Reference in New Issue
Block a user