Check for inventory group first
This commit is contained in:
parent
e5e1fd1b16
commit
063e4f7734
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue