Initial commit
This commit is contained in:
16
tasks/master.yml
Normal file
16
tasks/master.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Set Fact - k3s_node_ip
|
||||
set_fact:
|
||||
k3s_node_ip: '{{ ansible_facts[flannel_iface]["ipv4"]["address"] }}'
|
||||
|
||||
- name: Set Fact - server_init_args trim \n
|
||||
set_fact:
|
||||
server_init_args: "{{ server_init_args | regex_replace('\n', '') }}"
|
||||
|
||||
- name: Import Initial Master Node Tasks
|
||||
include_tasks: init_master.yml
|
||||
when: ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname']
|
||||
|
||||
- name: Run init
|
||||
shell: curl -sfL https://get.k3s.io | sh -s - server {{ server_init_args }}
|
||||
...
|
||||
Reference in New Issue
Block a user