mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
add update to tower project
This commit is contained in:
@@ -138,6 +138,29 @@
|
||||
that:
|
||||
- result is changed
|
||||
|
||||
- name: Update a git project, update the project and wait.
|
||||
tower_project:
|
||||
name: "{{ project_name3 }}"
|
||||
organization: Default
|
||||
scm_type: git
|
||||
scm_branch: empty_branch
|
||||
scm_url: https://github.com/ansible/test-playbooks
|
||||
allow_override: true
|
||||
wait: true
|
||||
update_project: true
|
||||
register: result
|
||||
|
||||
- name: Update a git project, update the project without waiting.
|
||||
tower_project:
|
||||
name: "{{ project_name3 }}"
|
||||
organization: Default
|
||||
scm_type: git
|
||||
scm_branch: empty_branch
|
||||
scm_url: https://github.com/ansible/test-playbooks
|
||||
wait: false
|
||||
update_project: true
|
||||
register: result
|
||||
|
||||
- name: Create a job template that overrides the project scm_branch
|
||||
tower_job_template:
|
||||
name: "{{ jt1 }}"
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
- name: Run Integration Test
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: False
|
||||
environment:
|
||||
TOWER_HOST: https://ansible-tower-web-svc-tower.apps-crc.testing
|
||||
TOWER_USERNAME: admin
|
||||
TOWER_PASSWORD: password
|
||||
TOWER_VERIFY_SSL: False
|
||||
collections:
|
||||
- awx.awx
|
||||
|
||||
tasks:
|
||||
- name: Update a git project, update the project and wait.
|
||||
tower_project:
|
||||
name: abcd
|
||||
organization: Default
|
||||
scm_type: git
|
||||
scm_branch: empty_branch
|
||||
scm_url: https://github.com/ansible/test-playbooks
|
||||
allow_override: true
|
||||
wait: true
|
||||
update_project: true
|
||||
register: result
|
||||
|
||||
- name: Sleep for 300 seconds and continue with play
|
||||
wait_for:
|
||||
timeout: 15
|
||||
|
||||
- name: Update a git project, update the project without waiting.
|
||||
tower_project:
|
||||
name: abcd
|
||||
organization: Default
|
||||
scm_type: git
|
||||
scm_branch: empty_branch
|
||||
scm_url: https://github.com/ansible/test-playbooks
|
||||
wait: false
|
||||
update_project: true
|
||||
register: result
|
||||
Reference in New Issue
Block a user