configure timezone/hostname in host

This commit is contained in:
egarette@silique.fr 2023-06-22 16:12:09 +02:00
parent f0d3ca8f43
commit 84315c7bae

View file

@ -2,6 +2,14 @@
- name: "Populate service facts" - name: "Populate service facts"
service_facts: service_facts:
- name: "Set timezone"
timezone:
name: Europe/Paris
- name: Set a hostname
ansible.builtin.hostname:
name: "{{ inventory_hostname }}"
- name: "Packages installation" - name: "Packages installation"
apt: apt:
pkg: "{{ vars[inventory_hostname]['general']['host_packages'] }}" pkg: "{{ vars[inventory_hostname]['general']['host_packages'] }}"