configure timezone/hostname in host
This commit is contained in:
parent
f0d3ca8f43
commit
84315c7bae
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@
|
|||
- name: "Populate service facts"
|
||||
service_facts:
|
||||
|
||||
- name: "Set timezone"
|
||||
timezone:
|
||||
name: Europe/Paris
|
||||
|
||||
- name: Set a hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
|
||||
- name: "Packages installation"
|
||||
apt:
|
||||
pkg: "{{ vars[inventory_hostname]['general']['host_packages'] }}"
|
||||
|
|
Loading…
Reference in a new issue