Testing dictionary
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 17:37:59 +02:00
parent 5b5a137a56
commit db7b58c170

View File

@ -111,6 +111,10 @@
src: /var/lib/rancher/k3s/server/token
register: k3s_token
# testing
- ansible.builtin.set_fact:
cluster: "{{ cluster | combine( { 'token': ( k3s_token.content | b64decode | trim ) } ) }}"
- name: Initial node -- Store token
ansible.builtin.set_fact:
clustertoken: "{{ k3s_token.content | b64decode | trim }}"
@ -147,6 +151,9 @@
port: 6443
timeout: 300
# testing
- ansible.builtin.debug:
msg: "{{ lookup(hostvars[ansible_play_hosts[0]], cluster) }}"
- name: Additional nodes -- Install K3s binary
ansible.builtin.shell:
cmd: "curl -sfL https://get.k3s.io | sh -s - server --disable local-storage,traefik"