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/package_facts/runme.sh

16 lines
563 B
Bash

#!/usr/bin/env bash
set -eux
ansible-playbook -i ../../inventory runme.yml -v "$@"
ansible-playbook -i ../../inventory test_warning_unusable.yml -v "$@" 2>&1 | tee output.log
if ! grep -q "Conditional result was False" output.log; then
grep "Requested package manager apk was not usable by this module" output.log
fi
ansible-playbook -i ../../inventory test_warning_failed.yml -v "$@" 2>&1 | tee output.log
if ! grep -q "Conditional result was False" output.log; then
grep "Failed to retrieve packages with apk: Unable to list packages" output.log
fi