add conditional check

This commit is contained in:
Sebastian Gumprich 2017-08-07 15:08:12 +02:00
parent 62d20e299f
commit cf3bbb3dd4

View file

@ -7,6 +7,7 @@
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
vars:
os_security_users_allow: change_user
os_security_kernel_enable_core_dump: false
@ -62,6 +63,7 @@
- name: Run the equivalent of "apt-get update" as a separate step
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
roles:
- ansible-os-hardening