diff options
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/consul/files/consul.service | 2 | ||||
-rw-r--r-- | ansible/roles/nomad/files/nomad.service | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ansible/roles/consul/files/consul.service b/ansible/roles/consul/files/consul.service index 3993567..ffaa2a3 100644 --- a/ansible/roles/consul/files/consul.service +++ b/ansible/roles/consul/files/consul.service @@ -1,5 +1,7 @@ [Unit] Description=Consul +After=network-online.target +Wants=network-online.target [Service] ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul diff --git a/ansible/roles/nomad/files/nomad.service b/ansible/roles/nomad/files/nomad.service index 34dc1fc..50116be 100644 --- a/ansible/roles/nomad/files/nomad.service +++ b/ansible/roles/nomad/files/nomad.service @@ -1,9 +1,11 @@ [Unit] Description=Nomad After=network-online.target -Wants=network-online.target After=glusterd.service +After=consul.service +Wants=network-online.target Wants=glusterd.service +Wants=consul.service [Service] ExecStart=/usr/local/bin/nomad agent -config /etc/nomad |