mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
* This increases security, the awx-operator SA has less cluster-wide
access
* This means one operator can only deploy to a single namespace
* If AWX deployments are needed in multiple namespaces, multiple
awx-operators can be deployed to accomplish this.
Signed-off-by: Christian M. Adams <chadams@redhat.com>
30 lines
644 B
YAML
30 lines
644 B
YAML
---
|
|
- name: Reconstruct awx-operator.yaml
|
|
import_playbook: chain-operator-files.yml
|
|
|
|
- name: Deploy Operator
|
|
hosts: localhost
|
|
vars:
|
|
k8s_namespace: "{{ namespace | default('default') }}"
|
|
obliterate: no
|
|
|
|
collections:
|
|
- kubernetes.core
|
|
|
|
tasks:
|
|
- name: Obliterate Operator
|
|
k8s:
|
|
state: absent
|
|
namespace: "{{ k8s_namespace }}"
|
|
src: "../deploy/awx-operator.yaml"
|
|
wait: yes
|
|
when: obliterate | bool
|
|
|
|
- name: Deploy Operator
|
|
k8s:
|
|
state: present
|
|
namespace: "{{ k8s_namespace }}"
|
|
apply: yes
|
|
wait: yes
|
|
src: "../deploy/awx-operator.yaml"
|