Skip to content

Commit

Permalink
Update deploy-k3s.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-hermann-sva authored Oct 27, 2024
1 parent 8ea768d commit d7f2dc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/deploy-k3s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
path: "{{ k3s_kubeconfig_path }}"
regexp: "127.0.0.1:{{ k8s_api_port }}"
line: " server: https://{% for host in groups['initial_master_node'] %}{{ hostvars[host]['ansible_default_ipv4']['address'] }}{% endfor %}:{{ k8s_api_port }}"
delegate_to: initial_master_node

when: inventory_hostname in groups['initial_master_node']
ignore_errors: true

- name: Deploy additional nodes
ansible.builtin.shell: |
curl -sfL {{ k3s_installscript_url }} | sh -s -
Expand Down

0 comments on commit d7f2dc8

Please sign in to comment.