Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Ansible-playbook: returned non-zero exit status 2

My Server:
Blank Debian 9.8 with python 2.7 and python 3.5

Error:
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-vvvv', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2

Can anybody please help me?

Can you say what command(s) led to the receipt of the error? If it is from an install script, where the script originated.

Pull out the actual command and run it outside of the script to see w

ansible-playbook -c local site.yml -vvvv -e @/tmp/extra_vars.json –become –become-user=frappe

‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’,
‘–become-user=frappe’]’ returned non-zero exit status 2`

Hi @crafter,
thank you for your response.

When i run

i become:

ansible-playbook 2.8.5
  config file = None
  configured module search path = ['/home/frappe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
No config file found; using defaults
ERROR! the playbook: site.yml could not be found

I could fix it!

see:

1 Like

Not at all sure that I follow. The error:

ERROR! the playbook: site.yml could not be found

was this ever resolved? How?

Is there any solution to this error? I too facing the same issue.