Loading roles/download/tasks/main.yml +3 −5 Original line number Diff line number Diff line --- - name: Delete k3s if already present file: path: /usr/local/bin/k3s state: absent - name: Download k3s binary x64 get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-amd64.txt dest: /usr/local/bin/k3s owner: root group: root Loading @@ -17,6 +13,7 @@ - name: Download k3s binary arm64 get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-arm64 checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-arm64.txt dest: /usr/local/bin/k3s owner: root group: root Loading @@ -29,6 +26,7 @@ - name: Download k3s binary armhf get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-armhf checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-arm.txt dest: /usr/local/bin/k3s owner: root group: root Loading roles/k3s/master/tasks/main.yml +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ path: ~{{ ansible_user }}/.kube state: directory owner: "{{ ansible_user }}" mode: "u=rwx,g=rx,o=" - name: Copy config file to user home directory copy: Loading @@ -56,6 +57,7 @@ dest: ~{{ ansible_user }}/.kube/config remote_src: yes owner: "{{ ansible_user }}" mode: "u=rw,g=,o=" - name: Replace https://localhost:6443 by https://master-ip:6443 command: >- Loading roles/prereq/tasks/main.yml +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ copy: content: "br_netfilter" dest: /etc/modules-load.d/br_netfilter.conf mode: "u=rw,g=,o=" when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux'] - name: Load br_netfilter Loading Loading
roles/download/tasks/main.yml +3 −5 Original line number Diff line number Diff line --- - name: Delete k3s if already present file: path: /usr/local/bin/k3s state: absent - name: Download k3s binary x64 get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-amd64.txt dest: /usr/local/bin/k3s owner: root group: root Loading @@ -17,6 +13,7 @@ - name: Download k3s binary arm64 get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-arm64 checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-arm64.txt dest: /usr/local/bin/k3s owner: root group: root Loading @@ -29,6 +26,7 @@ - name: Download k3s binary armhf get_url: url: https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/k3s-armhf checksum: sha256:https://github.com/rancher/k3s/releases/download/{{ k3s_version }}/sha256sum-arm.txt dest: /usr/local/bin/k3s owner: root group: root Loading
roles/k3s/master/tasks/main.yml +2 −0 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ path: ~{{ ansible_user }}/.kube state: directory owner: "{{ ansible_user }}" mode: "u=rwx,g=rx,o=" - name: Copy config file to user home directory copy: Loading @@ -56,6 +57,7 @@ dest: ~{{ ansible_user }}/.kube/config remote_src: yes owner: "{{ ansible_user }}" mode: "u=rw,g=,o=" - name: Replace https://localhost:6443 by https://master-ip:6443 command: >- Loading
roles/prereq/tasks/main.yml +1 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ copy: content: "br_netfilter" dest: /etc/modules-load.d/br_netfilter.conf mode: "u=rw,g=,o=" when: ansible_distribution in ['CentOS', 'Red Hat Enterprise Linux'] - name: Load br_netfilter Loading