-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check that docker daemon is running before continuing with install/ch…
…anges (#39) * #38 - Prevent potential unnecessary service restarts by sorting daemon.json by keys to ensure a net-zero changes to the config don\t cause diffs. * #38 - Check that docker daemon is running any time the service is potentially started/restarted.
- Loading branch information
1 parent
11b1926
commit 0438a4e
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# before moving on, make sure the docker daemon is actually up, by asking it for a list of images | ||
- name: ask docker for a list of images | ||
docker_image_info: {} | ||
become: "{{ true if docker_become_user is defined else false }}" | ||
become_user: "{{ docker_become_user }}" | ||
# try every 10 seconds for a minute to see if the service comes up | ||
delay: 10 | ||
retries: 6 | ||
register: docker_image_info_result | ||
until: docker_image_info_result is not failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{{ docker_daemon_config | to_nice_json(indent=2) }} | ||
{{ docker_daemon_config | to_nice_json(indent=2, sort_keys=True) }} |