From b1485e9887d19f97addacf0d6da06e53aceec3b0 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Fri, 5 May 2023 09:38:49 +0200 Subject: [PATCH] ansible: add poudriere-image to the inventory list This should cause us to exectute on the intiall install image, setting the hostname. Also configure the playbook to only run the change of hostname on the initiall installation image, so we can skip running that script on subsequent ansible runs. --- ansible/inventory.yaml | 1 + ansible/playbook.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/inventory.yaml b/ansible/inventory.yaml index 71107f7..b560a2c 100644 --- a/ansible/inventory.yaml +++ b/ansible/inventory.yaml @@ -3,3 +3,4 @@ domoticamachines: dom1: ansible_host: 1.0.2.18 qemu: + poudriere-image: diff --git a/ansible/playbook.yaml b/ansible/playbook.yaml index 5983ac9..0a2888c 100644 --- a/ansible/playbook.yaml +++ b/ansible/playbook.yaml @@ -1,5 +1,5 @@ - name: Set hostname - hosts: localhost + hosts: poudriere-image vars: tasks: - name: set system hostname -- 2.51.0