Обновить ansible/deploy_awx_k8s.yml

This commit is contained in:
2025-12-28 22:24:00 +00:00
parent 307fff0d60
commit 3bff4a21cc

View File

@@ -28,8 +28,7 @@
kind: Namespace kind: Namespace
metadata: metadata:
name: "{{ awx_namespace }}" name: "{{ awx_namespace }}"
environment: kubeconfig: /home/semaphore/.kube/config
KUBECONFIG: /home/semaphore/.kube/config
- name: Set current namespace context (optional, for convenience) - name: Set current namespace context (optional, for convenience)
command: kubectl config set-context --current --namespace={{ awx_namespace }} command: kubectl config set-context --current --namespace={{ awx_namespace }}
@@ -38,6 +37,8 @@
- name: Install AWX Operator using kustomize - name: Install AWX Operator using kustomize
command: >- command: >-
kubectl apply -k "github.com/ansible/awx-operator/config/default?ref={{ awx_operator_version }}" kubectl apply -k "github.com/ansible/awx-operator/config/default?ref={{ awx_operator_version }}"
environment:
KUBECONFIG: /home/semaphore/.kube/config
changed_when: false changed_when: false
- name: Wait for AWX Operator to be ready - name: Wait for AWX Operator to be ready