Completing the state required to setup k3s
This commit is contained in:
parent
77590b067a
commit
826d334c3c
@ -3,10 +3,12 @@
|
|||||||
hosts: nigel.local
|
hosts: nigel.local
|
||||||
remote_user: nigel
|
remote_user: nigel
|
||||||
tasks:
|
tasks:
|
||||||
- name: Setup basic role on nigel
|
- name: Apply the base role to the nuc
|
||||||
tags:
|
|
||||||
- setup
|
|
||||||
- nomad
|
|
||||||
- volumes
|
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: local-server-head
|
name: base
|
||||||
|
- name: Ensure nomad fixes are applied to the nuc
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: nomad
|
||||||
|
- name: Apply the proxy role
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: proxy
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
- name: Ensure the root data directory is present
|
- name: Ensure the root data directory is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ nomad.volumes.root }}"
|
path: "{{ nomad.volumes.root }}"
|
||||||
state: directory
|
state: absent
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- name: Ensure registry volume is present
|
- name: Ensure registry volume is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ nomad.volumes.registry }}"
|
path: "{{ nomad.volumes.registry }}"
|
||||||
state: directory
|
state: absent
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
- name: Ensure the MinIO diretory is present
|
- name: Ensure the MinIO diretory is present
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ nomad.volumes.nfs }}"
|
path: "{{ nomad.volumes.nfs }}"
|
||||||
state: directory
|
state: absent
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
Loading…
Reference in New Issue
Block a user