mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Separate folder for templating collection stuff
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
dest: "{{ collection_path }}/galaxy.yml"
|
||||
force: true
|
||||
|
||||
- name: Tempalte the README.md file
|
||||
- name: Template the README.md file
|
||||
template:
|
||||
src: "{{ collection_path }}/tools/roles/template_galaxy/templates/README.md.j2"
|
||||
dest: "{{ collection_path }}/README.md"
|
||||
|
||||
@@ -17,7 +17,7 @@ tags:
|
||||
- awx
|
||||
- ansible
|
||||
- automation
|
||||
version: {{ collection_version }}
|
||||
version: {{ collection_version_override | default(collection_version) }}
|
||||
build_ignore:
|
||||
- tools
|
||||
- setup.cfg
|
||||
|
||||
@@ -7,6 +7,34 @@
|
||||
collection_package: awx
|
||||
collection_namespace: awx
|
||||
collection_version: 0.0.1 # not for updating, pass in extra_vars
|
||||
collection_path: "{{ playbook_dir }}/../"
|
||||
collection_source: "{{ playbook_dir }}/../"
|
||||
collection_path: "{{ playbook_dir }}/../../awx_collection_build"
|
||||
pre_tasks:
|
||||
- file:
|
||||
path: "{{ collection_path }}"
|
||||
state: absent
|
||||
|
||||
- copy:
|
||||
src: "{{ collection_source }}"
|
||||
dest: "{{ collection_path }}"
|
||||
remote_src: true
|
||||
|
||||
roles:
|
||||
- template_galaxy
|
||||
|
||||
tasks:
|
||||
- name: Make substitutions in source to sync with templates
|
||||
set_fact:
|
||||
collection_version_override: devel
|
||||
|
||||
- name: Template the galaxy.yml file
|
||||
template:
|
||||
src: "{{ collection_source }}/tools/roles/template_galaxy/templates/galaxy.yml.j2"
|
||||
dest: "{{ collection_source }}/galaxy.yml"
|
||||
force: true
|
||||
|
||||
- name: Template the README.md file
|
||||
template:
|
||||
src: "{{ collection_source }}/tools/roles/template_galaxy/templates/README.md.j2"
|
||||
dest: "{{ collection_source }}/README.md"
|
||||
force: true
|
||||
|
||||
Reference in New Issue
Block a user