blob: 0f916c07b49a761b7df6ecd3ad6440811d3b09ee [file] [log] [blame]
Zack Williams55164582020-10-01 21:05:56 -07001---
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:
Zack Williams2a485e02022-05-14 20:38:41 -070013 cmd: "node --version"
Zack Williams55164582020-10-01 21:05:56 -070014 register: nodejs_version
15 tags:
16 - skip_ansible_lint # info gathering
17
Zack Williams2a485e02022-05-14 20:38:41 -070018 - name: Check installed Node.js version number
19 debug:
Zack Williams55164582020-10-01 21:05:56 -070020 var: nodejs_version
21
22 - name: Assert that installed Node.js version matches version string
23 assert:
24 that:
25 - "'v12' in nodejs_version.stdout"