From 4576831ec73a13c14a6a10f7e804894e9473698b Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Wed, 11 Feb 2026 05:24:28 -0600 Subject: [PATCH] update --- .gitlab-ci.yml | 2 +- ansible/roles/k3s/post/tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44211e2..38b543a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,6 +61,6 @@ ansible-k3s-dev: - if: '$SCRIPT == "k3s" && $ENVIRONMENT_NAME == "dev"' artifacts: paths: - - config + - $CI_PROJECT_DIR/kubeconfig expire_in: 1 days when: always \ No newline at end of file diff --git a/ansible/roles/k3s/post/tasks/main.yml b/ansible/roles/k3s/post/tasks/main.yml index b4e4627..3b32563 100644 --- a/ansible/roles/k3s/post/tasks/main.yml +++ b/ansible/roles/k3s/post/tasks/main.yml @@ -1,6 +1,6 @@ - name: ansible copy file from remote to local. fetch: src: /home/administrator/.kube/config - dest: "./" - flat: yes + dest: "{{ playbook_dir }}/kubeconfig" + flat: true when: ansible_hostname == groups[master_group][0]