diff --git a/tasks/cuda_init.yml b/tasks/cuda_init.yml index 8889ec6..638f716 100644 --- a/tasks/cuda_init.yml +++ b/tasks/cuda_init.yml @@ -33,7 +33,9 @@ # Due to ansible bug 21026, cannot use service module on RHEL 7 - name: enable the cuda_init systemd service in chroots - command: systemctl enable cuda_init + systemd: + name: cuda_init + enabled: yes when: - ansible_connection == 'chroot' - ansible_os_family == 'RedHat'