Open Abdazz opened 4 years ago
This doesn't work anymore. You need to modify the playbook and create the database with mysql_db before and then import via shell with flask as described here https://github.com/ngoduykhanh/PowerDNS-Admin/wiki/Running-PowerDNS-Admin-on-Ubuntu-or-Debian#running-powerdns-admin
Take a look here: https://github.com/opsta/ansible-pdns_admin/pull/2/files#diff-dea85a17d020e6086141c3594d558a6a
Though there sqlite was used instead of mysql
Hello !
I am trying to use this role, but get this error when I want to Create PowerDNS-Admin database.
fatal: [192.168.56.10]: FAILED! => {"changed": true, "cmd": ["/opt/PowerDNS-Admin/env/bin/python", "/opt/PowerDNS-Admin/create_db.py"], "delta": "0:00:00.011177", "end": "2020-03-03 12:55:23.921330", "msg": "non-zero return code", "rc": 2, "start": "2020-03-03 12:55:23.910153", "stderr": "/opt/PowerDNS-Admin/env/bin/python: can't open file '/opt/PowerDNS-Admin/create_db.py': [Errno 2] No such file or directory", "stderr_lines": ["/opt/PowerDNS-Admin/env/bin/python: can't open file '/opt/PowerDNS-Admin/create_db.py': [Errno 2] No such file or directory"], "stdout": "", "stdout_lines": []}
And if I verify in /opt/PowerDNS-Admin/, I don't find the create_db.py
My remote host is an ubuntu 16.04. Please, can someone help me to fix this troube ?