This commit is contained in:
NAGY Akos
2023-12-13 19:21:40 +02:00
commit 6ae461b7ef
12 changed files with 590 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
---
- name: Read token
ansible.builtin.raw: "cat /var/lib/rancher/k3s/server/token"
become: true
register: token_result
- name: Show token
ansible.builtin.debug:
msg: "{{ token_result.stdout_lines }}"
- name: Read kubeconfig
ansible.builtin.raw: "cat /etc/rancher/k3s/k3s.yaml"
become: true
register: kubeconfig_result
- name: Show kubeconfig
ansible.builtin.debug:
msg: "{{ kubeconfig_result.stdout }}"