with Ansible when I run my playbook show the following error:
$ /edx/bin/ansible-playbook /edx/app/edx_ansible/edx_ansible/playbooks/edx_sandbox.yml -i /edx/app/edx_ansible/edx_ansible/playbooks/inventory.ini -c local -vvvv
PLAY [Configure instance(s)] **********************************************
GATHERING FACTS ***********************************************************
<localhost> REMOTE_MODULE setup
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775 && echo $HOME/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775']
<localhost> PUT /tmp/tmpzaEyg6 TO /edx/app/edx_ansible/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775/setup
<localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=zqemyoctwviqpskmibdzilrsntmlpjqw] password: " -u root /bin/sh -c '"'"'echo SUDO-SUCCESS-zqemyoctwviqpskmibdzilrsntmlpjqw; /usr/bin/python /edx/app/edx_ansible/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775/setup; rm -rf /edx/app/edx_ansible/.ansible/tmp/ansible-tmp-1522863587.39-267625052613775/ >/dev/null 2>&1'"'"''
failed: [localhost] => {"failed": true, "parsed": false}
invalid output was: [sudo via ansible, key=zqemyoctwviqpskmibdzilrsntmlpjqw] password:
TASK: [user | debug var=user_info] ****************************************
FATAL: no hosts matched or all hosts have already failed -- aborting
PLAY RECAP ****************************************************************
to retry, use: --limit @/edx/app/edx_ansible/edx_sandbox.retry
localhost : ok=0 changed=0 unreachable=0 failed=1
Any idea?
seems like Ansible could not perform sudo in the target host
Обсуждают сегодня