Skip to content
Snippets Groups Projects
Commit 5d58bf46 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Merge pull request #137 from CVL-GitHub/hpcidbranch10

fixed centos 7 service restart
parents afcf1c17 67ff7951
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
- name: restart_host - name: restart_host
command: shutdown -r now "Reboot triggered by Ansible" command: shutdown -r now "Reboot triggered by Ansible"
async: 0 async: 900
poll: 0 poll: 60
sudo: true sudo: true
ignore_errors: true ignore_errors: true
when: has_been_compiled | failed when: has_been_compiled | failed
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %} {% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %}
systemctl restart slurmd systemctl restart slurmctld
{% else %} {% else %}
postrotate /etc/init.d/slurm reconfig postrotate /etc/init.d/slurm reconfig
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment