Add playbook to restart wesher and nomad
This commit is contained in:
parent
8b0495c6c8
commit
44467d1075
21
ansible_playbooks/nomad_wesher_restart.yml
Normal file
21
ansible_playbooks/nomad_wesher_restart.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
- name: Restart nomad and wesher
|
||||||
|
hosts: nomad_instances
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Stop Nomad
|
||||||
|
systemd:
|
||||||
|
name: nomad
|
||||||
|
state: stopped
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Restart wesher
|
||||||
|
systemd:
|
||||||
|
name: wesher
|
||||||
|
state: restarted
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Start Nomad
|
||||||
|
systemd:
|
||||||
|
name: nomad
|
||||||
|
state: stopped
|
||||||
|
become: true
|
Loading…
Reference in New Issue
Block a user