blob: 0f916c07b49a761b7df6ecd3ad6440811d3b09ee [file] [log] [blame]
---
# nodejs molecule/default/verify.yml
#
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
- name: Verify
hosts: all
tasks:
- name: Check installed Node.js version string
command:
cmd: "node --version"
register: nodejs_version
tags:
- skip_ansible_lint # info gathering
- name: Check installed Node.js version number
debug:
var: nodejs_version
- name: Assert that installed Node.js version matches version string
assert:
that:
- "'v12' in nodejs_version.stdout"