Skip to content

Commit

Permalink
No longer need to verify version of docker installed
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Nov 28, 2024
1 parent b6fce4e commit a0b9763
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions playbooks/molecule/resources/xnat/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,6 @@
- response.server == "nginx"
- response.content is search('MIRSG XNAT')

- name: Verify correct Docker version is installed
hosts: xnat_cserv
tasks:
- name: Get Docker server version
ansible.builtin.command:
cmd: "{% raw %}docker version -f '{{.Server.Version}}'{% endraw %}"
changed_when: false
register: server_version

- name: Get Docker client version
ansible.builtin.command:
cmd: "{% raw %}docker version -f '{{.Client.Version}}'{% endraw %}"
changed_when: false
register: client_version

- name: Check Docker server version
ansible.builtin.assert:
that:
- server_version.stdout is version( docker_version )
- client_version.stdout is version( docker_version )

- name: Verify container service is running
hosts: localhost
tasks:
Expand Down

0 comments on commit a0b9763

Please sign in to comment.