Refactor ansible-apply.yaml to use ansible user for fetching kube config

This commit is contained in:
2024-09-24 21:32:14 +02:00
parent 5ea3ad7b3d
commit 6e3183e760
2 changed files with 2 additions and 2 deletions
@@ -77,7 +77,7 @@ jobs:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: | run: |
mkdir -p ~/.kube mkdir -p ~/.kube
ansible -i ansible/inventory/hosts -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" microk8s ansible -i ansible/inventory/hosts -u $ANSIBLE_USER -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" microk8s
- name: Terraform Init - name: Terraform Init
env: env:
@@ -80,7 +80,7 @@ jobs:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: | run: |
mkdir -p ~/.kube mkdir -p ~/.kube
ansible -i ansible/inventory/hosts -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" microk8s ansible -i ansible/inventory/hosts -u $ANSIBLE_USER -m fetch -a "src=/home/$ANSIBLE_USER/.kube/config dest=~/.kube/config flat=yes" microk8s
- name: Terraform Init - name: Terraform Init
env: env: