From 826d334c3c005d6a4c66a5dd98e71788525650f5 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 10 Jul 2025 14:06:53 -0700 Subject: [PATCH] Completing the state required to setup k3s --- ansible/nuc.yaml | 14 ++++++++------ ansible/roles/nomad/tasks/main.yaml | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ansible/nuc.yaml b/ansible/nuc.yaml index da05402..6e60873 100644 --- a/ansible/nuc.yaml +++ b/ansible/nuc.yaml @@ -3,10 +3,12 @@ hosts: nigel.local remote_user: nigel tasks: - - name: Setup basic role on nigel - tags: - - setup - - nomad - - volumes + - name: Apply the base role to the nuc 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 diff --git a/ansible/roles/nomad/tasks/main.yaml b/ansible/roles/nomad/tasks/main.yaml index 227b9cc..8e540f8 100644 --- a/ansible/roles/nomad/tasks/main.yaml +++ b/ansible/roles/nomad/tasks/main.yaml @@ -4,15 +4,15 @@ - name: Ensure the root data directory is present ansible.builtin.file: path: "{{ nomad.volumes.root }}" - state: directory + state: absent mode: "0755" - name: Ensure registry volume is present ansible.builtin.file: path: "{{ nomad.volumes.registry }}" - state: directory + state: absent mode: "0755" - name: Ensure the MinIO diretory is present ansible.builtin.file: path: "{{ nomad.volumes.nfs }}" - state: directory + state: absent mode: "0755"