Files
awx/awx_collection/template_galaxy.yml
AlanCoding 7dd8e35e8c 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
2019-09-27 23:09:39 -04:00

29 lines
919 B
YAML

- hosts: localhost
gather_facts: false
connection: local
vars:
package_name: awx
namespace_name: awx
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