Zack Williams | 5516458 | 2020-10-01 21:05:56 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # nodejs 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 Node.js version string |
| 12 | command: |
| 13 | cmd: "nodejs --version" |
| 14 | register: nodejs_version |
| 15 | tags: |
| 16 | - skip_ansible_lint # info gathering |
| 17 | |
| 18 | - debug: |
| 19 | var: nodejs_version |
| 20 | |
| 21 | - name: Assert that installed Node.js version matches version string |
| 22 | assert: |
| 23 | that: |
| 24 | - "'v12' in nodejs_version.stdout" |