kubeasz/roles/os-harden/tasks/profile.yml

16 lines
418 B
YAML
Raw Normal View History

---
- name: add pinerolo_profile.sh to profile.d
template:
2018-09-17 23:23:56 +08:00
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
- 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