Add playbook to restart wesher and nomad

This commit is contained in:
IamTheFij 2023-06-20 09:45:01 -07:00
parent 8b0495c6c8
commit 44467d1075
1 changed files with 21 additions and 0 deletions

View 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