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
|
- name: Tell ifupdown to rename network interfaces
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/network/if-pre-up.d/nameif
|
dest: /etc/network/if-pre-up.d/nameif
|
||||||
|
@ -111,11 +116,6 @@
|
||||||
src: unattended-upgrade.logrotate
|
src: unattended-upgrade.logrotate
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
- name: Configure MOTD
|
|
||||||
template:
|
|
||||||
dest: /etc/motd
|
|
||||||
src: motd.j2
|
|
||||||
|
|
||||||
- name: Set authorized SSH keys
|
- name: Set authorized SSH keys
|
||||||
authorized_key:
|
authorized_key:
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
- name: Configure MOTD
|
||||||
|
template:
|
||||||
|
dest: /etc/motd
|
||||||
|
src: motd.j2
|
||||||
|
|
||||||
- name: Add rules to rename network interfaces
|
- name: Add rules to rename network interfaces
|
||||||
template:
|
template:
|
||||||
dest: /etc/udev/rules.d/10-network.rules
|
dest: /etc/udev/rules.d/10-network.rules
|
||||||
|
@ -5,8 +10,6 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: reboot
|
notify: reboot
|
||||||
|
|
||||||
- meta: flush_handlers
|
|
||||||
|
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: '{{ inventory_hostname }}'
|
name: '{{ inventory_hostname }}'
|
||||||
|
|
Loading…
Reference in a new issue