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