chore: activate kubernetes awx on dev/qa/prod
- config updates aren't possible without activation flag - split axw config update into own playbook: awx.ymlqa
parent
808155f266
commit
4ae3845681
@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
# configuring awx cluster
|
||||
|
||||
- name: 'apply awx config update to {{ host | default("all") }}'
|
||||
hosts: '{{ host | default("kube_control_plane") }}'
|
||||
serial: "{{ serial_number | default(10) }}"
|
||||
vars:
|
||||
ansible_ssh_host: "{{ stage_server_domain }}"
|
||||
|
||||
pre_tasks:
|
||||
- name: "Check if ansible version is at least {{ ansible_minimal_version }}"
|
||||
assert:
|
||||
that:
|
||||
- ansible_version.string is version(ansible_minimal_version, ">=")
|
||||
msg: "The ansible version has to be at least {{ ansible_minimal_version }}"
|
||||
tags:
|
||||
- always
|
||||
|
||||
- name: "Import autodiscover pre-tasks"
|
||||
import_tasks: tasks/autodiscover_pre_tasks.yml
|
||||
tags:
|
||||
- always
|
||||
|
||||
roles:
|
||||
- role: kubernetes/awx
|
||||
when: kubernetes_with_awx | default(false)
|
||||
tags:
|
||||
- never # shouldn't be done automatically due to removal logic
|
||||
- update_awx_config
|
||||
@ -1,5 +1,6 @@
|
||||
---
|
||||
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_externaldns: true
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_ingress: true
|
||||
kubernetes_with_awx: true
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_externaldns: true
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_ingress: true
|
||||
kubernetes_with_gitea: true
|
||||
|
||||
@ -1 +1,6 @@
|
||||
---
|
||||
|
||||
kubernetes_with_externaldns: true
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_ingress: true
|
||||
kubernetes_with_awx: true
|
||||
@ -1 +1,6 @@
|
||||
---
|
||||
|
||||
kubernetes_with_externaldns: true
|
||||
kubernetes_with_certmanager: true
|
||||
kubernetes_with_ingress: true
|
||||
kubernetes_with_awx: true
|
||||
|
||||
Loading…
Reference in New Issue