Files
awx/awx_collection/tests/integration/targets/demo_data/tasks/main.yml
2020-07-31 09:47:10 -07:00

34 lines
797 B
YAML

---
- name: Assure that default organization exists
tower_organization:
name: Default
- name: Assure that demo project exists
tower_project:
name: "Demo Project"
scm_type: 'git'
scm_url: 'https://github.com/ansible/ansible-tower-samples'
scm_update_on_launch: true
organization: Default
- name: Assure that demo inventory exists
tower_inventory:
name: "Demo Inventory"
organization: Default
- name: Create a Host
tower_host:
name: "localhost"
inventory: "Demo Inventory"
state: present
variables:
ansible_connection: local
register: result
- name: Assure that demo job template exists
tower_job_template:
name: "Demo Job Template"
project: "Demo Project"
inventory: "Demo Inventory"
playbook: "hello_world.yml"