awx/awx_collection/tools/integration_testing.yml
Adam Miller 2034cca3a9 update playbooks to use fqcn
Signed-off-by: Adam Miller <admiller@redhat.com>
2024-03-27 15:13:43 -04:00

25 lines
727 B
YAML

---
- hosts: localhost
gather_facts: false
connection: local
collections:
- awx.awx
vars:
collection_location: "{{ playbook_dir }}/.."
loc_tests: "{{ collection_location }}/tests/integration/targets/"
test: ad_hoc_command,host,role
tasks:
- name: DEBUG - make sure variables are what we expect
ansible.builtin.debug:
msg: |
Running tests at location:
{{ loc_tests }}
Running tests folders:
{{ test | trim | split(',') }}
- name: "Include test targets"
ansible.builtin.include_tasks: "{{ loc_tests }}{{ test_name }}/tasks/main.yml"
loop: "{{ test | trim | split(',') }}"
loop_control:
loop_var: test_name