Refactor inventory_gce tests to make the linter happy

This commit is contained in:
Chris Hawk 2025-06-20 15:28:16 -07:00
commit 5cd81072c4
7 changed files with 5 additions and 5 deletions

View file

@ -0,0 +1,16 @@
---
- name: TEST | print hosts
ansible.builtin.debug:
var: groups
- name: TEST | assert instances exist
ansible.builtin.assert:
that:
- groups['all'] | length > 0
- name: TEST | assert grouping works
ansible.builtin.assert:
that:
- groups['gcp_env_prod'] | length == 2
- groups['gcp_cluster_db'] | length == 1
- groups['gcp_cluster_web'] | length == 1