diff options
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/consul/tasks/main.yml | 2 | ||||
-rw-r--r-- | ansible/roles/nomad/files/nomad.service | 4 | ||||
-rw-r--r-- | ansible/roles/nomad/tasks/main.yml | 2 | ||||
-rw-r--r-- | ansible/roles/storage/tasks/main.yml | 2 |
4 files changed, 7 insertions, 3 deletions
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 |