From 622eea697a18496ab7316787ed020c64b0b95120 Mon Sep 17 00:00:00 2001 From: VilleS1 Date: Mon, 18 Nov 2019 15:20:54 +0200 Subject: [PATCH] use systemd module instead of shell --- handlers/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 422472a..e1554f0 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,7 +1,8 @@ --- # handlers file for ansible-role-cuda - name: reload systemd unit files - shell: systemctl daemon-reload + systemd: + daemon-reload: yes when: ansible_connection != 'chroot' - name: Initialize the GPUs