30d93995dd
* Use a pty for local connections Fixes #38696 Co-authored-by: James Cammarata <jimi@sngx.net>
6 lines
182 B
Bash
Executable file
6 lines
182 B
Bash
Executable file
#!/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" ]
|