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"