From e7ed8a49fb22e05066d3cf18f258aad0619a8e6b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 16 Jun 2020 16:28:24 +0200 Subject: Update local scripts --- ansible/roles/consul/tasks/main.yml | 2 +- ansible/roles/nomad/files/nomad.service | 4 ++++ ansible/roles/nomad/tasks/main.yml | 2 +- ansible/roles/storage/tasks/main.yml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) (limited to 'ansible/roles') diff --git a/ansible/roles/consul/tasks/main.yml b/ansible/roles/consul/tasks/main.yml index a943022..bb1d9ef 100644 --- a/ansible/roles/consul/tasks/main.yml +++ b/ansible/roles/consul/tasks/main.yml @@ -1,6 +1,6 @@ - name: "Set consul version" set_fact: - consul_version: 1.4.0 + consul_version: 1.7.4 - name: "Download and install Consul for armv7l" unarchive: diff --git a/ansible/roles/nomad/files/nomad.service b/ansible/roles/nomad/files/nomad.service index cabfafc..34dc1fc 100644 --- a/ansible/roles/nomad/files/nomad.service +++ b/ansible/roles/nomad/files/nomad.service @@ -1,5 +1,9 @@ [Unit] Description=Nomad +After=network-online.target +Wants=network-online.target +After=glusterd.service +Wants=glusterd.service [Service] ExecStart=/usr/local/bin/nomad agent -config /etc/nomad diff --git a/ansible/roles/nomad/tasks/main.yml b/ansible/roles/nomad/tasks/main.yml index e6e6e10..0b7b65c 100644 --- a/ansible/roles/nomad/tasks/main.yml +++ b/ansible/roles/nomad/tasks/main.yml @@ -1,6 +1,6 @@ - name: "Set nomad version" set_fact: - nomad_version: 0.8.6 + nomad_version: 0.11.3 - name: "Download and install Nomad for armv7l" unarchive: diff --git a/ansible/roles/storage/tasks/main.yml b/ansible/roles/storage/tasks/main.yml index 09f3a56..a1f2d8f 100644 --- a/ansible/roles/storage/tasks/main.yml +++ b/ansible/roles/storage/tasks/main.yml @@ -63,7 +63,7 @@ path: /mnt/glusterfs src: "{{ private_ip }}:/donnees" fstype: glusterfs - opts: "defaults,_netdev" + opts: "defaults,_netdev,noauto,x-systemd.automount" state: present - name: Mount everything -- cgit v1.2.3