ansible: add poudriere-image to the inventory list
authorKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 07:38:49 +0000 (09:38 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 5 May 2023 07:39:41 +0000 (09:39 +0200)
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
ansible/playbook.yaml

index 71107f7..b560a2c 100644 (file)
@@ -3,3 +3,4 @@ domoticamachines:
     dom1:
       ansible_host: 1.0.2.18
     qemu:
+    poudriere-image:
index 5983ac9..0a2888c 100644 (file)
@@ -1,5 +1,5 @@
 - name: Set hostname
-  hosts: localhost
+  hosts: poudriere-image
   vars:
   tasks:
     - name: set system hostname