Zack Williams | e0d9eb9 | 2020-11-29 22:39:20 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # docker molecule/default/verify.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: Verify |
| 8 | hosts: all |
| 9 | tasks: |
| 10 | |
| 11 | - name: Check installed Docker version string |
| 12 | command: |
| 13 | cmd: "docker version" |
| 14 | register: docker_version |
| 15 | tags: |
| 16 | - skip_ansible_lint # info gathering |
| 17 | |
| 18 | - debug: |
| 19 | var: docker_version |
| 20 | |
| 21 | - name: Assert that installed Docker version matches version string |
| 22 | assert: |
| 23 | that: |
| 24 | - "'Version: 19.03' in docker_version.stdout" |