we should set hostname before package installation
This commit is contained in:
parent
42b6960609
commit
2d2e5a78c5
@ -16,6 +16,10 @@
|
|||||||
notify:
|
notify:
|
||||||
- restart rsyslog
|
- restart rsyslog
|
||||||
- restart cron
|
- restart cron
|
||||||
|
- name: Set hostname
|
||||||
|
hostname:
|
||||||
|
name: "{{ inventory_hostname }}"
|
||||||
|
use: systemd
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ packages }}"
|
name: "{{ packages }}"
|
||||||
@ -65,7 +69,3 @@
|
|||||||
- 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user