From ff374062487a0035f1d824daf89b4d07f81fb0ac Mon Sep 17 00:00:00 2001 From: Michael G Date: Thu, 23 Jun 2022 07:02:31 +0200 Subject: [PATCH] Avoid string-based module configuration Configure module parameters as a YAML dict instead of string. --- handlers/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index a173b0d..1848733 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,6 @@ --- - name: restart docker - service: "name=docker state={{ docker_restart_handler_state }}" + service: + name: docker + state: "{{ docker_restart_handler_state }}" ignore_errors: "{{ ansible_check_mode }}"