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:
Anton Nesterov
2020-10-07 22:08:46 +02:00
parent 28e792056d
commit 8a09731a52
2 changed files with 15 additions and 17 deletions

View File

@@ -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) }}"