mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
pycharm refactor rename files and class, linux rename tower_ controller_
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user