Skip to content

Commit

Permalink
Merge pull request #173 from grycap/move_up_env
Browse files Browse the repository at this point in the history
move up Set KUBECONFIG environment variable
  • Loading branch information
micafer authored Sep 6, 2023
2 parents 904fd7a + dfeba69 commit c67d1c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@

when: kube_install_method == "k3s"

- name: Set KUBECONFIG environment variable
lineinfile:
dest: /etc/environment
line: "KUBECONFIG={{KUBECONFIG}}"

- import_tasks: helm.yaml
environment:
KUBECONFIG: "{{KUBECONFIG}}"
Expand Down Expand Up @@ -153,11 +158,6 @@
KUBECONFIG: "{{KUBECONFIG}}"
with_items: "{{ kube_apply_repos }}"

- name: Set KUBECONFIG environment variable
lineinfile:
dest: /etc/environment
line: "KUBECONFIG={{KUBECONFIG}}"

- block:
- template: src=nfs-client.j2 dest=/tmp/nfs-client.yaml
- command: kubectl apply -f /tmp/nfs-client.yaml
Expand Down

0 comments on commit c67d1c4

Please sign in to comment.