mirror of
https://gitlab.durp.info/durfy/runbooks/ansible.git
synced 2026-05-07 08:00:29 -05:00
update
This commit is contained in:
parent
f55728cc96
commit
6ee56e92c9
1 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
ansible_user: root
|
ansible_user: root
|
||||||
server_init_args: >-
|
server_init_args: >-
|
||||||
{% if groups['master_group'] | length > 1 %}
|
{% if (groups[master_group] | length) > 1 %}
|
||||||
{% if ansible_hostname == hostvars[groups['master_group'][0]]['ansible_hostname'] %}
|
{% if inventory_hostname == (groups[master_group][0]) %}
|
||||||
--cluster-init
|
--cluster-init
|
||||||
{% else %}
|
{% else %}
|
||||||
--server https://{{ hostvars[groups['master_group'][0]].k3s_node_ip }}:6443
|
--server https://{{ hostvars[groups[master_group][0]].k3s_node_ip }}:6443
|
||||||
{% endif %}
|
{% endif %}
|
||||||
--token {{ k3s_token }}
|
--token {{ k3s_token }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue