make sure to set hostname on new nodes and turn off motd news on focal

This commit is contained in:
staticsafe 2020-08-22 19:00:39 -04:00
parent 2d45e87d98
commit 1bd0269944
2 changed files with 5 additions and 1 deletions

View File

@ -64,3 +64,7 @@
- chrony
- 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
- name: Set hostname
hostname:
name: {{ inventory_hostname }}
use: systemd

View File

@ -2,7 +2,7 @@
# This role turns off the MOTD news in Ubuntu 18.04
- name: Copy motd-news file
when: ansible_distribution_release == 'bionic'
when: ansible_distribution_release == 'bionic' or ansible_distribution_release == 'focal'
copy:
src: motd-news
dest: /etc/default/motd-news