AETHER-2698 Docker role updates
- Add an ability to configure daemon option
- Add an option to install docker-compose
- Separate task for updating apt repository, and make it conditional
Change-Id: Iafff1635f9af07a9712124f82c2f3b27fb6e557c
diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml
index 557092e..8e218ca 100644
--- a/molecule/default/verify.yml
+++ b/molecule/default/verify.yml
@@ -22,3 +22,33 @@
assert:
that:
- "'Version: 19.03' in docker_version.stdout"
+
+ - name: Check docker daemon option exists
+ command:
+ cmd: "docker info -f {% raw %}'{{ index .RegistryConfig.Mirrors 0 }}'{% endraw %}"
+ register: docker_info
+ tags:
+ - skip_ansible_lint # info gathering
+
+ - debug:
+ var: docker_info
+
+ - name: Assert that installed Docker version matches version string
+ assert:
+ that:
+ - "'http://registry.aetherproject.net' in docker_info.stdout"
+
+ - name: Check installed Docker compose version string
+ command:
+ cmd: "docker-compose --version"
+ register: docker_compose_version
+ tags:
+ - skip_ansible_lint # info gathering
+
+ - debug:
+ var: docker_compose_version
+
+ - name: Assert that installed Docker compose version matches version string
+ assert:
+ that:
+ - "'docker-compose version 1.29.2' in docker_compose_version.stdout"