ansible and suexec

Hello,

I’m trying to run an Ansible-playbook with a sudo to root. But because of security we are using suexec and not sudo and with suexec it is possible to change from my key to root without password. … i just wonder if this possible with ansible:

ansible-playbook testroot.yml --ask-pass gives now following error:

SSH password:

PLAY [hostname] ***************************************************************

GATHERING FACTS ***************************************************************

fatal: [hostname.test.net] => {‘msg’: “FAILED: Bad authentication type (allowed_types=[‘keyboard-interactive’])”, ‘failed’: True}

TASK: [list] ******************************************************************

FATAL: no hosts matched or all hosts have already failed – aborting

PLAY RECAP ************************************************************

any help is welcome … Thanks

You can swap out what sudo is used in ansible.cfg

– Michael