debian: add MOTD
This commit is contained in:
parent
783f1af3a5
commit
4dc089e42c
3 changed files with 10 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
- name: Configure MOTD
|
||||
template:
|
||||
dest: /etc/motd
|
||||
src: motd.j2
|
||||
|
||||
- name: Tell ifupdown to rename network interfaces
|
||||
copy:
|
||||
dest: /etc/network/if-pre-up.d/nameif
|
||||
|
@ -111,11 +116,6 @@
|
|||
src: unattended-upgrade.logrotate
|
||||
mode: 0644
|
||||
|
||||
- name: Configure MOTD
|
||||
template:
|
||||
dest: /etc/motd
|
||||
src: motd.j2
|
||||
|
||||
- name: Set authorized SSH keys
|
||||
authorized_key:
|
||||
user: root
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
- name: Configure MOTD
|
||||
template:
|
||||
dest: /etc/motd
|
||||
src: motd.j2
|
||||
|
||||
- name: Add rules to rename network interfaces
|
||||
template:
|
||||
dest: /etc/udev/rules.d/10-network.rules
|
||||
|
@ -5,8 +10,6 @@
|
|||
mode: 0644
|
||||
notify: reboot
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: '{{ inventory_hostname }}'
|
||||
|
|
Loading…
Reference in a new issue