mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-12-16 19:27:37 +00:00
19 lines
461 B
YAML
19 lines
461 B
YAML
- name: Criar diretório temporário no remoto
|
|
file:
|
|
path: /tmp/stolon/kubernetes-files
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: Copiar arquivos YAML para o remoto
|
|
copy:
|
|
src: ./roles/stolon/kubernetes-files
|
|
dest: /tmp/stolon/kubernetes-files
|
|
mode: '0644'
|
|
|
|
- name: Aplicar o stolon
|
|
become: yes
|
|
become_user: fenix
|
|
shell: |
|
|
kubectl apply -f /tmp/stolon/kubernetes-files/
|
|
environment:
|
|
KUBECONFIG: /home/fenix/.kube/config |