diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a9a09fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +kubeconfig_*.yml diff --git a/pb_install.yml b/pb_install.yml index 48772b4..de5ff14 100644 --- a/pb_install.yml +++ b/pb_install.yml @@ -23,6 +23,11 @@ path: ~/.bashrc line: "export KUBECONFIG=/etc/rancher/k3s/k3s.yaml" insertafter: EOF + - name: get kubeconfig + fetch: + src: /etc/rancher/k3s/k3s.yaml + dest: kubeconfig_{{ ansible_host }}.yml + flat: yes - hosts: all gather_facts: false