diff --git a/tasks/rhosts.yml b/tasks/rhosts.yml index 1383ed5c4..8b7178feb 100644 --- a/tasks/rhosts.yml +++ b/tasks/rhosts.yml @@ -6,7 +6,7 @@ - name: delete rhosts-files from system | DTAG SEC Req 3.21-4 file: dest='~{{ item }}/.rhosts' state=absent - with_items: users.stdout_lines + with_items: '{{ users.stdout_lines }}' - name: delete hosts.equiv from system | DTAG SEC Req 3.21-4 file: dest='/etc/hosts.equiv' state=absent diff --git a/tasks/sysctl.yml b/tasks/sysctl.yml index b1114809b..3f9344ce3 100644 --- a/tasks/sysctl.yml +++ b/tasks/sysctl.yml @@ -23,7 +23,7 @@ state: present reload: yes ignoreerrors: yes - with_dict: sysctl_config + with_dict: '{{ sysctl_config }}' - name: Change various sysctl-settings on rhel-hosts, look at the sysctl-vars file for documentation sysctl: @@ -33,5 +33,5 @@ state: present reload: yes ignoreerrors: yes - with_dict: sysctl_rhel_config + with_dict: '{{ sysctl_rhel_config }}' when: ansible_distribution == 'RedHat' or ansible_distribution == 'Fedora' or ansible_distribution == 'CentOS'