Fix linter issue

This commit is contained in:
beeankha
2020-05-01 09:46:34 -04:00
committed by AlanCoding
parent 7478a2aa5e
commit 09c10a6f59
2 changed files with 60 additions and 58 deletions

View File

@@ -1,19 +1,20 @@
- name: Get date time data
---
- name: Get date time data
setup:
gather_subset: min
- name: Create module directory
- name: Create module directory
file:
state: directory
name: "modules"
- name: Load api/v2
- name: Load api/v2
uri:
method: GET
url: "{{ api_url }}/api/v2/"
register: endpoints
- name: Load endpoint options
- name: Load endpoint options
uri:
method: "OPTIONS"
url: "{{ api_url }}{{ item.value }}"
@@ -23,7 +24,7 @@
register: end_point_options
when: "generate_for is not defined or item.key in generate_for"
- name: Scan POST options for different things
- name: Scan POST options for different things
set_fact:
all_options: "{{ all_options | default({}) | combine(options[0]) }}"
loop: "{{ end_point_options.results }}"
@@ -35,7 +36,7 @@
- item is not skipped
- options is defined
- name: Process endpoint
- name: Process endpoint
template:
src: "templates/tower_module.j2"
dest: "{{ playbook_dir | dirname }}/plugins/modules/{{ file_name }}"

View File

@@ -1,3 +1,4 @@
---
- name: Set the collection version in the tower_api.py file
replace:
path: "{{ collection_path }}/plugins/module_utils/tower_api.py"