mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Rename inventory_source param to name
* fixes #8347 * Rename inventory_source to name in the tower_inventory_source_update * Allow to specify both name or id for `name` and `inventory` params
This commit is contained in:
@@ -73,8 +73,8 @@
|
||||
|
||||
- name: Test Inventory Source Update
|
||||
tower_inventory_source_update:
|
||||
name: "{{ inv_source2 }}"
|
||||
inventory: "{{ inv_name }}"
|
||||
inventory_source: "{{ inv_source2 }}"
|
||||
organization: Default
|
||||
register: result
|
||||
|
||||
@@ -84,8 +84,8 @@
|
||||
|
||||
- name: Test Inventory Source Update for All Sources
|
||||
tower_inventory_source_update:
|
||||
name: "{{ item.name }}"
|
||||
inventory: "{{ inv_name }}"
|
||||
inventory_source: "{{ item.name }}"
|
||||
organization: Default
|
||||
wait: true
|
||||
loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': created_inventory.id }, expect_objects=True, return_objects=True) }}"
|
||||
|
||||
Reference in New Issue
Block a user