Files
ansible-collection-hardening/roles/os_hardening/tasks/profile.yml
T
2021-03-25 13:52:56 +01:00

16 lines
430 B
YAML

---
- name: Add pinerolo_profile.sh to profile.d
template:
src: 'etc/profile.d/profile.conf.j2'
dest: '/etc/profile.d/pinerolo_profile.sh'
owner: 'root'
group: 'root'
mode: '0750'
when: not os_security_kernel_enable_core_dump | bool
- name: Remove pinerolo_profile.sh from profile.d
file:
path: /etc/profile.d/pinerolo_profile.sh
state: absent
when: os_security_kernel_enable_core_dump | bool