mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 07:47:44 -02:30
Use namespaced doc fragment, cleanup
doc fragment will now be at awx.awx.auth changed from just tower, which source from core remove Makefile things no longer needed
This commit is contained in:
@@ -7,5 +7,22 @@
|
||||
package_version: 0.0.1
|
||||
|
||||
tasks:
|
||||
- name: Do file content replacements for non-default namespace or package name
|
||||
block:
|
||||
- name: Find all module files
|
||||
find:
|
||||
paths: "{{ playbook_dir }}/plugins/modules"
|
||||
patterns: "*.py"
|
||||
register: module_files
|
||||
|
||||
- name: Change files to support desired namespace and package names
|
||||
replace:
|
||||
path: "{{ item.path }}"
|
||||
regexp: '^extends_documentation_fragment: awx.awx.auth$'
|
||||
replace: 'extends_documentation_fragment: {{ namespace_name }}.{{ package_name }}.auth'
|
||||
with_items: "{{ module_files.files }}"
|
||||
when:
|
||||
- (package_name != 'awx') or (namespace_name != 'awx')
|
||||
|
||||
- name: Template the galaxy.yml file
|
||||
template: src={{ playbook_dir }}/galaxy.yml.j2 dest={{ playbook_dir }}/galaxy.yml
|
||||
|
||||
Reference in New Issue
Block a user