diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2d587184058ec504088036bcb8f055738cd0ad10..e90cccefd229419f67c93e59ab89b84e1a5b9919 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -170,9 +170,9 @@ tests: - ansible -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "sudo ls" all - echo -e '[defaults]\r\nallow_world_readable_tmpfiles = True' > ansible.cfg - ansible-playbook -i files/inventory.$STACKNAME --key-file ../gc_key.pem ./tests/mockSlurmData.yml - - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "sinfo" ManagementNodes - - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "squeue" ManagementNodes - - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "scontrol ping" LoginNodes + - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/sinfo" ManagementNodes + - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/squeue" ManagementNodes + - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "/opt/slurm-19.05.4/bin/scontrol/scontrol ping" LoginNodes - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet ntpd" all - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet mariadb" SQLNodes - ansible -B 30 -i files/inventory.$STACKNAME --key-file ../gc_key.pem -a "systemctl is-active --quiet slurmctld" ManagementNodes diff --git a/roles/ntp/tasks/main.yml b/roles/ntp/tasks/main.yml index a3d428ae3b94e99799608daf832c93a3470bd2ba..a023263d3880acf037ba17093c08918cfe04cef2 100644 --- a/roles/ntp/tasks/main.yml +++ b/roles/ntp/tasks/main.yml @@ -24,8 +24,14 @@ become_user: root notify: restart ntpd -- name: "enable ntp" +- name: "enable ntpd" service: name=ntpd enabled=yes state=started become: true become_user: root when: ansible_os_family == 'RedHat' + +- name: "enable ntp" + service: name=ntp enabled=yes state=started + become: true + become_user: root + when: ansible_os_family == 'Debian' \ No newline at end of file