summaryrefslogtreecommitdiff
path: root/test/integration/targets/no_log/runme.sh
blob: e20bb08c4f07eff6132196a13d83ac10487524c4 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -eux

# This test expects 7 loggable vars and 0 non-loggable ones.
# If either mismatches it fails, run the ansible-playbook command to debug.

[ "$(ansible-playbook no_log_local.yml -i ../../inventory -vvvvv "$@" | awk \
'BEGIN { logme = 0; nolog = 0; } /LOG_ME/ { logme += 1;} /DO_NOT_LOG/ { nolog += 1;} END { printf "%d/%d", logme, nolog; }')" = "26/0" ]