sudo: accept -n too (issue #108)

wip-fakessh-exit-status
David Wilson 6 years ago
parent 9cfcf79f43
commit 88508fcb61

@ -1,5 +1,4 @@
[defaults]
sudo_flags = -HE
inventory = hosts
strategy_plugins = ../../ansible_mitogen/plugins/strategy
library = modules

@ -52,14 +52,14 @@ SUDO_OPTIONS = [
#(False, 'bool', '--remove-timestamp', '-K')
#(False, 'bool', '--reset-timestamp', '-k')
#(False, 'bool', '--list', '-l')
#(False, 'bool', '--non-interactive', '-n')
#(False, 'bool', '--preserve-groups', '-P')
#(False, 'str', '--prompt', '-p')
#(False, 'str', '--role', '-r')
# For now the password is always typed interactively on a TTY, so accept
# this option but do not pass it through.
# These options are supplied by default by Ansible, but are ignored, as
# sudo always runs under a TTY with Mitogen.
(True, 'bool', '--stdin', '-S'),
(True, 'bool', '--non-interactive', '-n'),
#(False, 'str', '--shell', '-s')
#(False, 'str', '--type', '-t')

Loading…
Cancel
Save