Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart slurmd and slurmctld after a Slurm upgrade #59

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
state: reloaded
when: "slurm_start_services and ('slurmdbdservers' in group_names or 'dbd' in slurm_roles)"

- name: Restart slurmdbd
ansible.builtin.service:
name: "{{ slurmdbd_service_name }}"
state: restarted
when: "slurm_start_services and ('slurmdbdservers' in group_names or 'dbd' in slurm_roles)"

- name: Reload slurmctld
ansible.builtin.service:
name: "{{ slurmctld_service_name }}"
Expand Down
2 changes: 2 additions & 0 deletions tasks/slurmctld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ansible.builtin.package:
name: "{{ __slurm_packages.slurmctld }}"
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
notify:
- Restart slurmctld

- name: Create slurm state directory
ansible.builtin.file:
Expand Down
2 changes: 2 additions & 0 deletions tasks/slurmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ansible.builtin.package:
name: "{{ __slurm_packages.slurmd }}"
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
notify:
- Restart slurmd

- name: Create slurm spool directory
ansible.builtin.file:
Expand Down
2 changes: 2 additions & 0 deletions tasks/slurmdbd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
ansible.builtin.package:
name: "{{ __slurm_packages.slurmdbd }}"
state: "{{ 'latest' if slurm_upgrade else 'present' }}"
notify:
- Restart slurmdbd

- name: Create slurm log directory
ansible.builtin.file:
Expand Down
Loading