From: Kristof Provost Date: Fri, 5 May 2023 07:38:49 +0000 (+0200) Subject: ansible: add poudriere-image to the inventory list X-Git-Url: https://git.sigsegv.be/?a=commitdiff_plain;h=b1485e9887d19f97addacf0d6da06e53aceec3b0;p=pennestraat-domotica 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. --- 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