blob: 2c812047a822d2c47b2ade94cecc8ab5a609068a [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: "nodejs --version"
register: nodejs_version
tags:
- skip_ansible_lint # info gathering
- debug:
var: nodejs_version
- name: Assert that installed Node.js version matches version string
assert:
that:
- "'v12' in nodejs_version.stdout"