Loading roles/k3s/master/tasks/main.yml +3 −3 Original line number Diff line number Diff line Loading @@ -46,20 +46,20 @@ - name: Create directory .kube file: path: /home/{{ ansible_user }}/.kube path: ~{{ ansible_user }}/.kube state: directory owner: "{{ ansible_user }}" - name: Copy config file to user home directory copy: src: /etc/rancher/k3s/k3s.yaml dest: /home/{{ ansible_user }}/.kube/config dest: ~{{ ansible_user }}/.kube/config remote_src: yes owner: "{{ ansible_user }}" - name: Replace https://localhost:6443 by https://master-pi:6443 replace: path: /home/{{ ansible_user }}/.kube/config path: ~{{ ansible_user }}/.kube/config regexp: 'https://localhost:6443' replace: 'https://{{master_ip}}:6443' Loading Loading
roles/k3s/master/tasks/main.yml +3 −3 Original line number Diff line number Diff line Loading @@ -46,20 +46,20 @@ - name: Create directory .kube file: path: /home/{{ ansible_user }}/.kube path: ~{{ ansible_user }}/.kube state: directory owner: "{{ ansible_user }}" - name: Copy config file to user home directory copy: src: /etc/rancher/k3s/k3s.yaml dest: /home/{{ ansible_user }}/.kube/config dest: ~{{ ansible_user }}/.kube/config remote_src: yes owner: "{{ ansible_user }}" - name: Replace https://localhost:6443 by https://master-pi:6443 replace: path: /home/{{ ansible_user }}/.kube/config path: ~{{ ansible_user }}/.kube/config regexp: 'https://localhost:6443' replace: 'https://{{master_ip}}:6443' Loading