Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks
but has large files...
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
--- |
|
# |
|
# Important: maintain correct handler order. |
|
# Handlers are executed in the order in which they are defined |
|
# and not in the order in whch they are listed in a "notify: handler_name" statement! |
|
# |
|
# Restart before reload: an reload after a restart may be redundant but should not fail, |
|
# but the other way around may fail when the impact of changes was too large for a reload. |
|
# |
|
- name: Restart munge service. |
|
systemd: |
|
name: 'munge.service' |
|
state: restarted |
|
become: true |
|
listen: restart_munge |
|
|
|
- name: Restart slurmd service. |
|
systemd: |
|
name: 'slurmd.service' |
|
state: reloaded |
|
become: true |
|
listen: restart_slurmd |
|
|
|
- name: Restart nhc service. |
|
systemd: |
|
name: 'nhc.service' |
|
state: restarted |
|
become: true |
|
listen: restart_nhc |
|
|
|
# |
|
# Service reloads after restarts. |
|
# |
|
- name: Reload munge service. |
|
systemd: |
|
name: 'munge.service' |
|
state: reloaded |
|
become: true |
|
listen: reload_munge |
|
|
|
- name: Reload slurmd service. |
|
systemd: |
|
name: 'slurmd.service' |
|
state: reloaded |
|
become: true |
|
listen: reload_slurmd |
|
|
|
...
|
|
|