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
  • Loading branch information
VilleS1 committed Nov 18, 2019
1 parent 8fca620 commit 0e94bbd
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 @@ -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'
Expand Down

0 comments on commit 0e94bbd

Please sign in to comment.