From 84315c7baef5b19b2acc0adc13eb25f89667da90 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 22 Jun 2023 16:12:09 +0200 Subject: [PATCH] configure timezone/hostname in host --- ansible/host.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/host.yml b/ansible/host.yml index 3981337..9297029 100644 --- a/ansible/host.yml +++ b/ansible/host.yml @@ -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'] }}"