pycharm refactor rename files and class, linux rename tower_ controller_

This commit is contained in:
Seth Foster
2021-04-28 18:13:22 -04:00
parent 2ad84b60b3
commit 44fed1d7c1
93 changed files with 234 additions and 149 deletions

View File

@@ -1,15 +1,15 @@
---
- name: Set the collection version in the tower_api.py file
- name: Set the collection version in the controller_api.py file
replace:
path: "{{ collection_path }}/plugins/module_utils/tower_api.py"
path: "{{ collection_path }}/plugins/module_utils/controller_api.py"
regexp: '^ _COLLECTION_VERSION = "0.0.1-devel"'
replace: ' _COLLECTION_VERSION = "{{ collection_version }}"'
when:
- "awx_template_version | default(True)"
- name: Set the collection type in the tower_api.py file
- name: Set the collection type in the controller_api.py file
replace:
path: "{{ collection_path }}/plugins/module_utils/tower_api.py"
path: "{{ collection_path }}/plugins/module_utils/controller_api.py"
regexp: '^ _COLLECTION_TYPE = "awx"'
replace: ' _COLLECTION_TYPE = "{{ collection_package }}"'
@@ -30,7 +30,7 @@
- name: Change inventory file to support desired namespace and package names
replace:
path: "{{ collection_path }}/plugins/inventory/tower.py"
path: "{{ collection_path }}/plugins/inventory/controller.py"
regexp: "^ NAME = 'awx.awx.tower' # REPLACE$"
replace: " NAME = '{{ collection_namespace }}.{{ collection_package }}.tower' # REPLACE"