I’m trying to run the command as root:
python /home/john/install.py --production --user frappe
The script exits with status 2 and the following error:
PLAY RECAP ***********************************************************************
localhost : ok=32 changed=5 unreachable=0 failed=1
Traceback (most recent call last):
File "/home/john/install.py", line 387, in <module>
install_bench(args)
File "/home/john/install.py", line 109, in install_bench
run_playbook('site.yml', sudo=True, extra_vars=extra_vars)
File "/home/john/install.py", line 325, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, 'playbooks'))
File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ansible-playbook', '-c', 'local', 'site.yml', '-e', '@/tmp/extra_vars.json', '--become', '--become-user=frappe']' returned non-zero exit status 2
The failure seems to be at this stage:
TASK [wkhtmltopdf : download wkthmltox linux] ************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to validate the SSL certificate for github.com:443. Make sure your managed systems have a valid CA certificate installed. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: (\"bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'tlsv1 alert protocol version')],)\",)."}
Appreciate any help regarding this install