Initial commit

This commit is contained in:
Pin
2022-11-13 16:36:08 -05:00
commit f0d1bb4b06
12 changed files with 2100 additions and 0 deletions

16
tasks/master.yml Normal file
View 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 }}
...