Merge pull request #274 from eengstrom/ignore-errors-in-check-mode

ignore likely errors if in `ansible_check_mode`
This commit is contained in:
Jeff Geerling 2021-04-27 14:05:42 -05:00 committed by GitHub
commit e5c8040aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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