New target for sanity testing of the collection

Do not run in Zuul
This commit is contained in:
AlanCoding
2019-10-03 12:04:59 -04:00
parent 8669e87454
commit 9d93b78296
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
- hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Find all module files
find:
paths: "{{ playbook_dir }}/plugins/modules"
patterns: "*.py"
register: module_files
- name: Change module_utils imports to absolute namespace and package names
replace:
path: "{{ item.path }}"
regexp: '^from ..module_utils.ansible_tower'
replace: 'from ansible_collections.awx.awx.plugins.module_utils.ansible_tower'
with_items: "{{ module_files.files }}"