ansible-role-motd/tasks/main.yml

32 lines
729 B
YAML
Raw Normal View History

2018-09-25 14:15:07 +07:00
---
2018-09-25 19:55:16 +07:00
# tasks file for roles/motd
- name: MOTD - set motd
template:
src: templates/etc/motd.j2
dest: /etc/motd
2018-09-25 19:55:16 +07:00
mode: 0644
- name: MOTD - set motd banner
template:
2018-09-25 19:55:16 +07:00
src: templates/etc/update-motd.d/20-banner.j2
dest: /etc/update-motd.d/20-banner
mode: 0755
- name: MOTD - set system info
template:
2018-09-25 19:55:16 +07:00
src: templates/etc/update-motd.d/30-sysinfo.j2
dest: /etc/update-motd.d/30-sysinfo
mode: 0755
- name: MOTD - set free disk space
template:
2018-09-25 19:55:16 +07:00
src: templates/etc/update-motd.d/40-disks.j2
dest: /etc/update-motd.d/40-disks
mode: 0755
- name: MOTD - Reboot Warning
template:
src: templates/etc/update-motd.d/80-reboot.j2
dest: /etc/update-motd.d/80-reboot
mode: 0755