use fully qualified inventory plugin name

This commit is contained in:
AlanCoding
2019-10-09 14:02:30 -04:00
parent 08df2cad68
commit 16ebfe3a63
3 changed files with 9 additions and 3 deletions

View File

@@ -21,6 +21,12 @@
regexp: '^extends_documentation_fragment: awx.awx.auth$'
replace: 'extends_documentation_fragment: {{ collection_namespace }}.{{ collection_package }}.auth'
with_items: "{{ module_files.files }}"
- name: Change files to support desired namespace and package names
replace:
path: "{{ playbook_dir }}/plugins/inventory/tower.py"
regexp: "^ NAME = 'awx.awx.tower' # REPLACE$"
replace: " NAME = '{{ collection_namespace }}.{{ collection_package }}.tower' # REPLACE"
when:
- (collection_package != 'awx') or (collection_namespace != 'awx')