mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Improve CI (#528)
* Update CI scripts to be more close to the ones in ansible-core. * Extend CI matrix. * Make sure that docker daemon is running (when not in a container). * Make sure that connection plugin tests do not uninstall Docker daemon. * Check some conditions. * Fix error ignores. * Skip SSH test on Alpine VMs. * Take care of more errors. * Adjust for more errors. * Improve conditions. * Remove new entries from CI matrix; make CI matrix nicer.
This commit is contained in:
@@ -41,11 +41,11 @@
|
||||
- name: Restore /usr/sbin/policy-rc.d (if needed)
|
||||
command: mv {{ policy_rc_d.backup_file }} /usr/sbin/policy-rc.d
|
||||
when:
|
||||
- '''backup_file'' in policy_rc_d'
|
||||
- '"backup_file" in policy_rc_d'
|
||||
|
||||
- name: Remove /usr/sbin/policy-rc.d (if needed)
|
||||
file:
|
||||
path: /usr/sbin/policy-rc.d
|
||||
state: absent
|
||||
when:
|
||||
- '''backup_file'' not in policy_rc_d'
|
||||
- '"backup_file" not in policy_rc_d'
|
||||
|
||||
@@ -43,6 +43,12 @@
|
||||
paths:
|
||||
- "{{ role_path }}/tasks"
|
||||
|
||||
- name: Make sure that docker is running
|
||||
service:
|
||||
name: docker
|
||||
state: started
|
||||
when: not ansible_module_running_in_container
|
||||
|
||||
# Detect docker API version
|
||||
- name: Check Docker API version
|
||||
command: "docker version -f {% raw %}'{{(index .Server.Components 0).Details.ApiVersion}}'{% endraw %}"
|
||||
|
||||
Reference in New Issue
Block a user