Update roles/stolon/tasks/main.yml

This commit is contained in:
2025-11-11 22:44:50 +00:00
parent 71ec9945b1
commit a34e5a5e8b

View File

@ -60,11 +60,13 @@
environment: environment:
KUBECONFIG: /home/fenix/.kube/config KUBECONFIG: /home/fenix/.kube/config
- name: Aplicar o stolon
become: yes #run this if first time setting up database
become_user: fenix #- name: Aplicar o stolon
shell: | # become: yes
kubectl run -i -n=postgresql -t stolonctl --image=sorintlab/stolon:master-pg15 --restart=Never --rm -- /usr/local/bin/stolonctl --cluster-name=kube-stolon --store-backend=kubernetes --kube-resource-kind=configmap init --yes # become_user: fenix
when: stolon_cluster_check.rc != 0 # shell: |
environment: # kubectl run -i -n=postgresql -t stolonctl --image=sorintlab/stolon:master-pg15 --restart=Never --rm -- /usr/local/bin/stolonctl --cluster-name=kube-stolon --store-backend=kubernetes --kube-resource-kind=configmap init --yes
KUBECONFIG: /home/fenix/.kube/config # when: stolon_cluster_check.rc != 0
# environment:
# KUBECONFIG: /home/fenix/.kube/config