sudo: accept -n too (issue #108)

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

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

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

Loading…
Cancel
Save