7 lines
182 B
Bash
7 lines
182 B
Bash
|
#!/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" ]
|