You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/roles_var_inheritance/runme.sh

10 lines
265 B
Bash

#!/usr/bin/env bash
set -eux
ansible-playbook -i ../../inventory play.yml "$@" | tee out.txt
test "$(grep out.txt -ce '"nested_var": "A"')" == 1
test "$(grep out.txt -ce '"nested_var": "B"')" == 1
test "$(grep out.txt -ce '"var_precedence": "dependency"')" == 2