homelab-nomad/ansible_playbooks/nomad_wesher_restart.yml

22 lines
378 B
YAML
Raw Normal View History

- 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