feat(cis): add selectable profile and per-rule hardening toggles
This commit is contained in:
11
roles/cis/tasks/warning_banners.yml
Normal file
11
roles/cis/tasks/warning_banners.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Set login warning banners
|
||||
when: cis_effective_rules.warning_banners | default(false)
|
||||
ansible.builtin.copy:
|
||||
dest: "/mnt/etc/{{ item }}"
|
||||
content: "{{ cis_cfg.banner_text }}\n"
|
||||
mode: "0644"
|
||||
loop:
|
||||
- issue
|
||||
- issue.net
|
||||
- motd
|
||||
Reference in New Issue
Block a user