Add playbooks/motd.yml
This commit is contained in:
17
playbooks/motd.yml
Normal file
17
playbooks/motd.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
- name: deploy custom motd
|
||||||
|
hosts: alma
|
||||||
|
become: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: remove bloat default motd file
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/motd.d/cockpit
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: replace base motd file
|
||||||
|
copy:
|
||||||
|
src: ../config/motd
|
||||||
|
dest: /etc/motd
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
Reference in New Issue
Block a user