26 lines
542 B
YAML
26 lines
542 B
YAML
|
- name: Set motd file
|
||
|
ansible.builtin.copy:
|
||
|
content: |
|
||
|
WARNING
|
||
|
WARNING
|
||
|
WARNING
|
||
|
|
||
|
{{ inventory_hostname }} is managed by Ansible
|
||
|
|
||
|
Repo is https://forge.k3s.fr/{{ ansible_cfg_repo }}
|
||
|
Don't update by hand, you fucker!
|
||
|
|
||
|
Thanks!
|
||
|
dest: /etc/motd
|
||
|
|
||
|
- name: Set sshd Banner option to motd
|
||
|
lineinfile:
|
||
|
dest: /etc/ssh/sshd_config
|
||
|
regexp: ""
|
||
|
line: ""
|
||
|
state: present
|
||
|
with_items:
|
||
|
- regexp: "^#?Banner"
|
||
|
line: "Banner /etc/issue"
|
||
|
notify: restart sshd
|