mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 16:47:45 -02:30
update logic
This commit is contained in:
@@ -411,7 +411,7 @@ def main():
|
|||||||
credential = module.copy_item(
|
credential = module.copy_item(
|
||||||
credential, copy_from, name,
|
credential, copy_from, name,
|
||||||
endpoint='credentials', item_type='credential',
|
endpoint='credentials', item_type='credential',
|
||||||
copy_lookup_data=copy_lookup_data
|
copy_lookup_data=copy_lookup_data,
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ def main():
|
|||||||
inventory = module.copy_item(
|
inventory = module.copy_item(
|
||||||
inventory, copy_from, name,
|
inventory, copy_from, name,
|
||||||
endpoint='inventories', item_type='inventory',
|
endpoint='inventories', item_type='inventory',
|
||||||
|
copy_lookup_data={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -449,6 +449,7 @@ def main():
|
|||||||
existing_item = module.copy_item(
|
existing_item = module.copy_item(
|
||||||
existing_item, copy_from, name,
|
existing_item, copy_from, name,
|
||||||
endpoint='job_templates', item_type='job_template',
|
endpoint='job_templates', item_type='job_template',
|
||||||
|
copy_lookup_data={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -408,6 +408,7 @@ def main():
|
|||||||
existing_item = module.copy_item(
|
existing_item = module.copy_item(
|
||||||
existing_item, copy_from, name,
|
existing_item, copy_from, name,
|
||||||
endpoint='notification_templates', item_type='notification_template',
|
endpoint='notification_templates', item_type='notification_template',
|
||||||
|
copy_lookup_data={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -300,6 +300,7 @@ def main():
|
|||||||
project = module.copy_item(
|
project = module.copy_item(
|
||||||
project, copy_from, name,
|
project, copy_from, name,
|
||||||
endpoint='projects', item_type='project',
|
endpoint='projects', item_type='project',
|
||||||
|
copy_lookup_data={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ def main():
|
|||||||
existing_item = module.copy_item(
|
existing_item = module.copy_item(
|
||||||
existing_item, copy_from, name,
|
existing_item, copy_from, name,
|
||||||
endpoint='workflow_job_templates', item_type='workflow_job_template',
|
endpoint='workflow_job_templates', item_type='workflow_job_template',
|
||||||
|
copy_lookup_data={},
|
||||||
)
|
)
|
||||||
|
|
||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
|
|||||||
@@ -164,16 +164,16 @@
|
|||||||
that:
|
that:
|
||||||
- "result is changed"
|
- "result is changed"
|
||||||
|
|
||||||
- name: Get the job
|
|
||||||
tower_job_list:
|
|
||||||
query: {"id": "{{result.id}}"}
|
|
||||||
register: result
|
|
||||||
|
|
||||||
- name: Wait for 2nd job max 120s
|
- name: Wait for 2nd job max 120s
|
||||||
tower_job_wait:
|
tower_job_wait:
|
||||||
job_id: "{{result.id}}"
|
job_id: "{{result.id}}"
|
||||||
timeout: 120
|
timeout: 120
|
||||||
|
|
||||||
|
- name: Get the job
|
||||||
|
tower_job_list:
|
||||||
|
query: {"id": "{{result.id}}"}
|
||||||
|
register: result
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- '{"foo": "bar"} | to_json in result.results[0].extra_vars'
|
- '{"foo": "bar"} | to_json in result.results[0].extra_vars'
|
||||||
|
|||||||
Reference in New Issue
Block a user