public-health-ch/ansible/roles/dev-sec.os-hardening/tasks/profile.yml

16 lines
430 B
YAML
Raw Normal View History

2017-04-24 12:22:51 +00:00
---
2018-12-17 12:50:15 +00:00
- 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'
2020-05-15 20:41:39 +00:00
when: not os_security_kernel_enable_core_dump | bool
2018-12-17 12:50:15 +00:00
- name: remove pinerolo_profile.sh from profile.d
file:
path: /etc/profile.d/pinerolo_profile.sh
state: absent
2020-05-15 20:41:39 +00:00
when: os_security_kernel_enable_core_dump | bool