Avoid string-based module configuration

Configure module parameters as a YAML dict instead of string.
This commit is contained in:
Michael G 2022-06-23 07:02:31 +02:00 committed by GitHub
parent f583d39a84
commit ff37406248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,6 @@
--- ---
- name: restart docker - name: restart docker
service: "name=docker state={{ docker_restart_handler_state }}" service:
name: docker
state: "{{ docker_restart_handler_state }}"
ignore_errors: "{{ ansible_check_mode }}" ignore_errors: "{{ ansible_check_mode }}"