Creating a basic role for displaying message of the day
[root@workstation ~]# vim /etc/ansible/roles/motd/main.yml — – name: use motd role playbook hosts: all
roles: – motd
[root@workstation ~]# vim /etc/ansible/roles/motd/defaults/main.yml — system_owner: rmohan [root@workstation ~]# vim /etc/ansible/roles/motd/tasks/main.yml — – name: deliver motd file template: src: templates/motd.j2 dest: /etc/motd owner: root group: root mode: 777 [root@workstation […]
Recent Comments