Fix linter error

This commit is contained in:
beeankha
2020-08-27 19:07:18 -04:00
parent 72dbd10c2a
commit 65e0ed8c77

View File

@@ -12,59 +12,59 @@
- block: - block:
- name: Create a git project without credentials - name: Create a git project without credentials
tower_project: tower_project:
name: "{{ project_name }}" name: "{{ project_name }}"
organization: Default organization: Default
scm_type: git scm_type: git
scm_url: https://github.com/ansible/test-playbooks scm_url: https://github.com/ansible/test-playbooks
wait: true wait: true
- name: Create an Inventory - name: Create an Inventory
tower_inventory: tower_inventory:
name: "{{ inv_name }}" name: "{{ inv_name }}"
organization: Default organization: Default
state: present state: present
register: created_inventory register: created_inventory
- name: Create an Inventory Source - name: Create an Inventory Source
tower_inventory_source: tower_inventory_source:
name: "{{ inv_source1 }}" name: "{{ inv_source1 }}"
source: scm source: scm
source_project: "{{ project_name }}" source_project: "{{ project_name }}"
source_path: inventories/inventory.ini source_path: inventories/inventory.ini
description: Source for Test inventory description: Source for Test inventory
inventory: "{{ inv_name }}" inventory: "{{ inv_name }}"
- name: Create Another Inventory Source - name: Create Another Inventory Source
tower_inventory_source: tower_inventory_source:
name: "{{ inv_source2 }}" name: "{{ inv_source2 }}"
source: scm source: scm
source_project: "{{ project_name }}" source_project: "{{ project_name }}"
source_path: inventories/create_10_hosts.ini source_path: inventories/create_10_hosts.ini
description: Source for Test inventory description: Source for Test inventory
inventory: "{{ inv_name }}" inventory: "{{ inv_name }}"
- name: Test Inventory Source Update - name: Test Inventory Source Update
tower_inventory_source_update: tower_inventory_source_update:
inventory: "{{ inv_name }}" inventory: "{{ inv_name }}"
inventory_source: "{{ inv_source1 }}" inventory_source: "{{ inv_source1 }}"
register: result register: result
- assert: - assert:
that: that:
- "result is changed" - "result is changed"
- name: Test Inventory Source Update for All Sources - name: Test Inventory Source Update for All Sources
tower_inventory_source_update: tower_inventory_source_update:
inventory: "{{ inv_name }}" inventory: "{{ inv_name }}"
inventory_source: "{{ item }}" inventory_source: "{{ item }}"
loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': created_inventory.id }, return_ids=True ) }}" loop: "{{ query('awx.awx.tower_api', 'inventory_sources', query_params={ 'inventory': created_inventory.id }, return_ids=True ) }}"
register: result register: result
- assert: - assert:
that: that:
- "result is changed" - "result is changed"
always: always:
- name: Delete Inventory - name: Delete Inventory