make sure to set hostname on new nodes and turn off motd news on focal
This commit is contained in:
parent
2d45e87d98
commit
1bd0269944
@ -64,3 +64,7 @@
|
|||||||
- chrony
|
- chrony
|
||||||
- name: Ensure that the periodic APT cron task clears out old kernels and does unattended security upgrades
|
- name: Ensure that the periodic APT cron task clears out old kernels and does unattended security upgrades
|
||||||
copy: src=10periodic dest=/etc/apt/apt.conf.d/10periodic backup=yes owner=root group=root mode=0644
|
copy: src=10periodic dest=/etc/apt/apt.conf.d/10periodic backup=yes owner=root group=root mode=0644
|
||||||
|
- name: Set hostname
|
||||||
|
hostname:
|
||||||
|
name: {{ inventory_hostname }}
|
||||||
|
use: systemd
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# This role turns off the MOTD news in Ubuntu 18.04
|
# This role turns off the MOTD news in Ubuntu 18.04
|
||||||
|
|
||||||
- name: Copy motd-news file
|
- name: Copy motd-news file
|
||||||
when: ansible_distribution_release == 'bionic'
|
when: ansible_distribution_release == 'bionic' or ansible_distribution_release == 'focal'
|
||||||
copy:
|
copy:
|
||||||
src: motd-news
|
src: motd-news
|
||||||
dest: /etc/default/motd-news
|
dest: /etc/default/motd-news
|
||||||
|
Loading…
Reference in New Issue
Block a user