Refactor how awx-operator.yaml is rendered out

This commit is contained in:
Shane McDonald
2020-10-05 15:23:53 -04:00
parent 6d5b7724ff
commit e8eef8a1ca
2 changed files with 14 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
#jinja2: trim_blocks:False
# This file is generated by Ansible. Changes will be lost.
# Update templates under ansible/templates/
{% include 'role.yml.j2' %}
{% include 'role_binding.yml.j2' %}
{% include 'service_account.yml.j2' %}
{% include 'operator.yml.j2' %}
{% include 'crd.yml.j2' %}

View File

@@ -12,13 +12,6 @@
dest: "{{ playbook_dir }}/../deploy/crds/awx_v1beta1_crd.yaml"
- name: Template awx-operator.yaml
copy:
content: |
# This file is generated by Ansible. Changes will be lost.
# Update templates under ansible/templates/
{{ lookup('template', 'role.yml.j2') }}
{{ lookup('template', 'role_binding.yml.j2') }}
{{ lookup('template', 'service_account.yml.j2') }}
{{ lookup('template', 'operator.yml.j2') }}
{{ lookup('template', 'crd.yml.j2') }}
template:
src: awx-operator.yaml.j2
dest: ../deploy/awx-operator.yaml