Check for inventory group first

This commit is contained in:
phil 2023-11-01 15:30:04 +01:00
parent e5e1fd1b16
commit 063e4f7734
1 changed files with 1 additions and 1 deletions

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