Merge pull request #102 from Spredzy/templatize_api_version

Make the API version used for status update parametrable
This commit is contained in:
Yanis Guenane
2021-02-17 11:43:25 +01:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
---
deployment_type: awx
api_version: '{{ deployment_type }}.ansible.com/v1beta1'
tower_task_privileged: false
tower_ingress_type: none

View File

@@ -1,7 +1,7 @@
---
- name: Update admin password status
operator_sdk.util.k8s_status:
api_version: awx.ansible.com/v1beta1
api_version: '{{ api_version }}'
kind: "{{ deployment_type | upper }}"
name: "{{ meta.name }}"
namespace: "{{ meta.namespace }}"
@@ -10,7 +10,7 @@
- name: Update admin user status
operator_sdk.util.k8s_status:
api_version: awx.ansible.com/v1beta1
api_version: '{{ api_version }}'
kind: "{{ deployment_type | upper }}"
name: "{{ meta.name }}"
namespace: "{{ meta.namespace }}"
@@ -29,12 +29,12 @@
- name: Update version status
operator_sdk.util.k8s_status:
api_version: awx.ansible.com/v1beta1
api_version: '{{ api_version }}'
kind: "{{ deployment_type | upper }}"
name: "{{ meta.name }}"
namespace: "{{ meta.namespace }}"
status:
towerVersion: "{{ instance_version.stdout }}"
towerVersion: "{{ instance_version.stdout | trim }}"
- block:
- name: Retrieve route URL
@@ -46,7 +46,7 @@
- name: Update URL status
operator_sdk.util.k8s_status:
api_version: awx.ansible.com/v1beta1
api_version: '{{ api_version }}'
kind: "{{ deployment_type | upper }}"
name: "{{ meta.name }}"
namespace: "{{ meta.namespace }}"