mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-06 14:14:22 -07:00
Don't die when docker CLI doesn't want to work with docker daemon (#366)
* Don't die when docker CLI doesn't want to work with docker daemon. * Allow more 'docker volume ls' failures * More. * Fix more failures. * Forgot ignore_errors. * Another one. * More places. * Try to install newer docker on RHEL8. * Also restrict docker-ce-cli.
This commit is contained in:
parent
49f56697bb
commit
6fca49f445
11 changed files with 251 additions and 181 deletions
|
@ -7,14 +7,20 @@
|
|||
command: "docker logs {{ registry_name }}"
|
||||
register: registry_logs
|
||||
no_log: yes
|
||||
ignore_errors: yes
|
||||
- name: "Printing registry logs"
|
||||
debug: var=registry_logs.stdout_lines
|
||||
debug:
|
||||
var: registry_logs.stdout_lines
|
||||
when: registry_logs is not failed
|
||||
- name: "Get nginx logs"
|
||||
command: "docker logs {{ nginx_name }}"
|
||||
register: nginx_logs
|
||||
no_log: yes
|
||||
ignore_errors: yes
|
||||
- name: "Printing nginx logs"
|
||||
debug: var=nginx_logs.stdout_lines
|
||||
debug:
|
||||
var: nginx_logs.stdout_lines
|
||||
when: nginx_logs is not failed
|
||||
- name: "Make sure all containers are removed"
|
||||
docker_container:
|
||||
name: "{{ item }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue