Skip to content

Commit

Permalink
use systemd module instead off systemctl commands to make ansible gal…
Browse files Browse the repository at this point in the history
…axy happy v2
  • Loading branch information
VilleS1 committed Nov 18, 2019
1 parent f0a7e6a commit 1756a07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/cuda_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

# Due to ansible bug 21026, cannot use service module on RHEL 7
- name: enable the nvidia-persistenced systemd service in chroots
command: systemctl enable nvidia-persistenced
systemd:
name: nvidia-persistenced
enabled: yes
when:
- ansible_connection == 'chroot'
- ansible_os_family == 'RedHat'
Expand Down

0 comments on commit 1756a07

Please sign in to comment.