ansible: Apply lxd role only to hosts in the lxd group
authorKienan Stewart <kstewart@efficios.com>
Thu, 8 Aug 2024 13:15:11 +0000 (09:15 -0400)
committerKienan Stewart <kstewart@efficios.com>
Thu, 8 Aug 2024 18:22:59 +0000 (14:22 -0400)
This will continue to allow bootstrapping of LXD clusters if needed
for testing.

Change-Id: Ib0cffa8ad8f50e30242d638ad12c65032cbb5789
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/hosts.yml

index 1cb9dd06bc2770b4129c8ffc40e77c78f365b3f8..702e43ee0ad655cdbce375c7cc7d266042b80324 100644 (file)
@@ -7,8 +7,17 @@
 - hosts: hosts
   roles:
     - common
+- hosts: hosts:&lxd:!windows
+  roles:
+    - lxd
+  tasks:
+    - ansible.builtin.include_role:
+        name: incus
+        tasks_from: install
+- hosts: hosts:&incus:!windows
+  roles:
+    - incus
 - hosts: hosts:!windows
   roles:
     - libvirt
-    - lxd
     - rasdaemon
This page took 0.023016 seconds and 4 git commands to generate.