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
0607fe797a
commit
b610c3a6a2
1 changed files with 8 additions and 8 deletions
|
|
@ -34,18 +34,12 @@
|
||||||
Expected derived groups '{{ master_group }}' and '{{ node_group }}' to exist in inventory
|
Expected derived groups '{{ master_group }}' and '{{ node_group }}' to exist in inventory
|
||||||
for cluster '{{ cluster }}'.
|
for cluster '{{ cluster }}'.
|
||||||
|
|
||||||
- name: Load k3s shared variables
|
|
||||||
hosts: localhost
|
|
||||||
gather_facts: false
|
|
||||||
tasks:
|
|
||||||
- name: Load vars from k3s/vars/main.yaml
|
|
||||||
ansible.builtin.include_vars:
|
|
||||||
file: "roles/k3s/vars/main.yaml"
|
|
||||||
|
|
||||||
- name: Install prerequisites on all nodes
|
- name: Install prerequisites on all nodes
|
||||||
hosts: "{{ cluster }}"
|
hosts: "{{ cluster }}"
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
vars_files:
|
||||||
|
- "roles/k3s/vars/main.yaml"
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- k3s/prereq
|
- k3s/prereq
|
||||||
|
|
@ -55,6 +49,8 @@
|
||||||
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-master' }}"
|
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-master' }}"
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
vars_files:
|
||||||
|
- "roles/k3s/vars/main.yaml"
|
||||||
roles:
|
roles:
|
||||||
- k3s/master
|
- k3s/master
|
||||||
|
|
||||||
|
|
@ -62,6 +58,8 @@
|
||||||
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-node' }}"
|
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-node' }}"
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
vars_files:
|
||||||
|
- "roles/k3s/vars/main.yaml"
|
||||||
roles:
|
roles:
|
||||||
- k3s/node
|
- k3s/node
|
||||||
|
|
||||||
|
|
@ -69,5 +67,7 @@
|
||||||
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-master' }}"
|
hosts: "{{ (cluster | regex_replace('-cluster$', '')) ~ '-master' }}"
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
become: yes
|
become: yes
|
||||||
|
vars_files:
|
||||||
|
- "roles/k3s/vars/main.yaml"
|
||||||
roles:
|
roles:
|
||||||
- k3s/post
|
- k3s/post
|
||||||
Loading…
Add table
Add a link
Reference in a new issue