mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Improve CI (#198)
* Use remote temp path, replace remote lookups. * Copy local files. * Change docker resource name prefix from ansible-test to ansible-docker-test to avoid collision with ansible-test's containers. * Fix typos. * We don't neceessarily have a TTY. * Use hopefully less collision-likely subnet. * More collision avoidance. * More changes.
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
state: absent
|
||||
force_kill: yes
|
||||
loop:
|
||||
- ansible-test-docker-inventory-container-1
|
||||
- ansible-test-docker-inventory-container-2
|
||||
- ansible-docker-test-docker-inventory-container-1
|
||||
- ansible-docker-test-docker-inventory-container-2
|
||||
|
||||
- name: remove docker pagkages
|
||||
action: "{{ ansible_facts.pkg_mgr }}"
|
||||
|
||||
@@ -18,5 +18,5 @@
|
||||
published_ports:
|
||||
- 22/tcp
|
||||
loop:
|
||||
- name: ansible-test-docker-inventory-container-1
|
||||
- name: ansible-test-docker-inventory-container-2
|
||||
- name: ansible-docker-test-docker-inventory-container-1
|
||||
- name: ansible-docker-test-docker-inventory-container-2
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
- when:
|
||||
# When the integration tests are run inside a docker container, there
|
||||
# will be other containers.
|
||||
- inventory_hostname.startswith('ansible-test-docker-inventory-container-')
|
||||
- inventory_hostname.startswith('ansible-docker-test-docker-inventory-container-')
|
||||
block:
|
||||
|
||||
- name: Run raw command
|
||||
|
||||
+3
-3
@@ -16,8 +16,8 @@
|
||||
- groups.running | length >= 2
|
||||
- groups.stopped | length >= 0
|
||||
- groups['image_' ~ docker_test_image_alpine] | length == 2
|
||||
- groups['ansible-test-docker-inventory-container-1'] | length == 1
|
||||
- groups['ansible-test-docker-inventory-container-2'] | length == 1
|
||||
- groups['ansible-docker-test-docker-inventory-container-1'] | length == 1
|
||||
- groups['ansible-docker-test-docker-inventory-container-2'] | length == 1
|
||||
- groups['unix://var/run/docker.sock'] | length >= 2
|
||||
- groups | length >= 12
|
||||
# The four additional groups are IDs and short IDs of the containers.
|
||||
@@ -42,4 +42,4 @@
|
||||
when:
|
||||
# When the integration tests are run inside a docker container, there
|
||||
# will be other containers.
|
||||
- inventory_hostname.startswith('ansible-test-docker-inventory-container-')
|
||||
- inventory_hostname.startswith('ansible-docker-test-docker-inventory-container-')
|
||||
|
||||
Reference in New Issue
Block a user