diff --git a/roles/gpu/tasks/main.yml b/roles/gpu/tasks/main.yml index a08e9fb7fd3c74c0b63d023e4efc6a1ab220f10a..a8b27eb740f04a153f025b88e5fe6cdbc57f610e 100644 --- a/roles/gpu/tasks/main.yml +++ b/roles/gpu/tasks/main.yml @@ -60,8 +60,8 @@ - name: restart_host command: shutdown -r now "Reboot triggered by Ansible" - async: 0 - poll: 0 + async: 900 + poll: 60 sudo: true ignore_errors: true when: has_been_compiled | failed diff --git a/roles/slurm-common/templates/slurmlog.j2 b/roles/slurm-common/templates/slurmlog.j2 index cbdace2050430fb92db9a94722a08d06749d708a..03ae9764f459d44f32d616f935c0c645f962537d 100644 --- a/roles/slurm-common/templates/slurmlog.j2 +++ b/roles/slurm-common/templates/slurmlog.j2 @@ -20,7 +20,7 @@ {% endif %} {% endif %} {% if ansible_os_family == 'RedHat' and ansible_distribution_version >= '7' %} - systemctl restart slurmd + systemctl restart slurmctld {% else %} postrotate /etc/init.d/slurm reconfig {% endif %}