ansible/test/integration/targets/become_su/runme.sh

7 lines
182 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eux
# ensure we execute su with a pseudo terminal
[ "$(ansible -a whoami --become-method=su localhost --become)" != "su: requires a terminal to execute" ]