don't error when no client VMs exist

This commit is contained in:
abrown38 committed 2024-09-25 15:21:46 +01:00
1 parent 53d43256bd
commit a198d507cf
3 files changed
+5 -5

No files matched your search

@@ -38,7 +38,7 @@
bypass:
- <local>
when: |
inventory_hostname in groups['meta-type_client'] and
inventory_hostname in groups['meta-type_client']|default([]) and
project_zone == 'protected'
- name: Install Chocolatey GUI
@@ -40,4 +40,4 @@
state: "domain"
domain_ou_path: ou=Workbench,dc={{ win_project }},dc=loc
reboot: true
when: "inventory_hostname in groups['meta-type_client']"
when: "inventory_hostname in groups['meta-type_client']|default([])"