ignore likely errors if in ansible_check_mode

This commit is contained in:
Eric Engstrom 2021-04-20 11:16:09 -05:00
parent ab3d6c7ec5
commit 150a7ce135
No known key found for this signature in database
GPG Key ID: 9232FD58D13AAAB2
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -16,6 +16,7 @@
name: docker
state: "{{ docker_service_state }}"
enabled: "{{ docker_service_enabled }}"
ignore_errors: "{{ ansible_check_mode }}"
- name: Ensure handlers are notified now to avoid firewall conflicts.
meta: flush_handlers