mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
25 lines
727 B
YAML
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
|