mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 02:47:36 -02:30
Make org an optional parameter for both inv source and inv source update modules
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
credential: "{{ openstack_cred }}"
|
||||
overwrite: true
|
||||
update_on_launch: true
|
||||
organization: Default
|
||||
source_vars:
|
||||
private: false
|
||||
source: openstack
|
||||
@@ -48,7 +47,6 @@
|
||||
credential: "Does Not Exit"
|
||||
source_project: "Does Not Exist"
|
||||
source_script: "Does Not Exist"
|
||||
organization: Default
|
||||
state: absent
|
||||
|
||||
- assert:
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
organization: "{{ org_name }}"
|
||||
state: present
|
||||
|
||||
- name: Create another inventory w/ same name
|
||||
- name: Create another inventory w/ same name, different org
|
||||
tower_inventory:
|
||||
name: "{{ inv_name }}"
|
||||
organization: Default
|
||||
state: present
|
||||
register: created_inventory
|
||||
|
||||
- name: Create an Inventory Source
|
||||
- name: Create an Inventory Source (specifically connected to the randomly generated org)
|
||||
tower_inventory_source:
|
||||
name: "{{ inv_source1 }}"
|
||||
source: scm
|
||||
@@ -51,7 +51,7 @@
|
||||
organization: "{{ created_org.id }}"
|
||||
inventory: "{{ inv_name }}"
|
||||
|
||||
- name: Create Another Inventory Source (for testing org-based lookup)
|
||||
- name: Create Another Inventory Source
|
||||
tower_inventory_source:
|
||||
name: "{{ inv_source2 }}"
|
||||
source: scm
|
||||
@@ -61,7 +61,7 @@
|
||||
organization: Default
|
||||
inventory: "{{ inv_name }}"
|
||||
|
||||
- name: Create Yet Another Inventory Source (one more to make lookup plugin find multiple inventory sources)
|
||||
- name: Create Yet Another Inventory Source (to make lookup plugin find multiple inv sources)
|
||||
tower_inventory_source:
|
||||
name: "{{ inv_source3 }}"
|
||||
source: scm
|
||||
|
||||
Reference in New Issue
Block a user