Check for inventory group first

This commit is contained in:
phil 2023-11-01 15:30:04 +01:00
parent e5e1fd1b16
commit 063e4f7734

View file

@ -20,8 +20,8 @@
- name: Create hypervisor items
ansible.builtin.import_tasks: hypervisor.yml
when:
- "'qemu-system-x86' in ansible_facts.packages"
- "inventory_hostname not in groups.storage_boxes"
- "'qemu-system-x86' in ansible_facts.packages"
tags:
- hypervisor
- server