template awxbackup crd into awx-operator.yml for easy deployment

This commit is contained in:
Christian M. Adams
2021-03-31 10:33:30 -04:00
parent 250ff960bd
commit 6bc149bae2
9 changed files with 81 additions and 165 deletions

View File

@@ -17,7 +17,7 @@
- name: Create AWXBackup Custom Resource Definition
k8s:
definition: "{{ lookup('file', '/'.join([deploy_dir, 'crds/awx.ansible.com_awxbackups_crd.yaml'])) }}"
definition: "{{ lookup('file', '/'.join([deploy_dir, 'crds/awxbackup_v1beta1_crd.yaml'])) }}"
- name: Ensure specified namespace is present
k8s:

View File

@@ -29,10 +29,9 @@
operator_image: awx.ansible.com/awx-operator
operator_version: testing
custom_resource: "{{ lookup('file', '/'.join([deploy_dir, 'crds/awx_v1beta1_molecule.yaml'])) | from_yaml }}"
tasks:
- block:
- name: Delete the Operator Deployment
k8s:
state: absent