diff --git a/roles/stolon/tasks/main.yml b/roles/stolon/tasks/main.yml index 51f3e9e..40d4fb0 100644 --- a/roles/stolon/tasks/main.yml +++ b/roles/stolon/tasks/main.yml @@ -10,5 +10,10 @@ dest: /tmp/stolon/kubernetes-files mode: '0644' -- name: Aplicar os YAMLs com kubectl - command: kubectl apply -f /tmp/stolon/kubernetes-files \ No newline at end of file +- name: Aplicar o stolon + become: yes + become_user: fenix + shell: | + kubectl apply -f /tmp/stolon/kubernetes-files . + environment: + KUBECONFIG: /home/fenix/.kube/config \ No newline at end of file