mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
bb588bd777
* linting Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * more linting Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * change line length issues Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * replace yes with true in tasks Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * use manual line-wrapping because ansible-lint does not support it correctly. see https://github.com/ansible/ansible-lint/issues/2522 Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * add exception for task Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * remove trailing whitespace * add back deleted params Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * add back deleted params Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com> * add back tasks Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
23 lines
639 B
YAML
23 lines
639 B
YAML
---
|
|
- name: Add pinerolo_profile.sh to profile.d
|
|
ansible.builtin.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
|
|
ansible.builtin.file:
|
|
path: /etc/profile.d/pinerolo_profile.sh
|
|
state: absent
|
|
when: os_security_kernel_enable_core_dump | bool
|
|
|
|
- name: Add autologout to profile env
|
|
ansible.builtin.template:
|
|
src: etc/profile.d/tmout.sh.j2
|
|
dest: /etc/profile.d/tmout.sh
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|