Add awxbackup CRD creation to molecule to get tests passing

This commit is contained in:
Christian M. Adams
2021-03-31 01:04:51 -04:00
parent e1dca00f46
commit 250ff960bd

View File

@@ -11,10 +11,14 @@
- "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/ansible/group_vars/all"
tasks:
- name: Create Custom Resource Definition
- name: Create AWX Custom Resource Definition
k8s:
definition: "{{ lookup('file', '/'.join([deploy_dir, 'crds/awx_v1beta1_crd.yaml'])) }}"
- name: Create AWXBackup Custom Resource Definition
k8s:
definition: "{{ lookup('file', '/'.join([deploy_dir, 'crds/awx.ansible.com_awxbackups_crd.yaml'])) }}"
- name: Ensure specified namespace is present
k8s:
api_version: v1