DigitalState / Platform

The DigitalState Platform
MIT License
40 stars 20 forks source link

Stat fail #64

Closed marioprudhomme closed 5 years ago

marioprudhomme commented 5 years ago

ASK [app/tasks/database/fixtures/load : Download tasks fixtures directory override] ***An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option fatal: [app]: FAILED! => {"changed": false, "msg": "Could not find or access '{'failed': False, u'stat': {u'exists': False}, u'changed': False}/'\nSearched in:\n\t/etc/ansible/role/app/tasks/database/fixtures/load/files/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/\n\t/etc/ansible/role/app/tasks/database/fixtures/load/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/\n\t/etc/ansible/role/app/tasks/database/fixtures/load/tasks/files/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/\n\t/etc/ansible/role/app/tasks/database/fixtures/load/tasks/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/\n\t/etc/ansible/playbook/app/database/fixtures/files/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/\n\t/etc/ansible/playbook/app/database/fixtures/{'failed': False, u'stat': {u'exists': False}, u'changed': False}/ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

marioprudhomme commented 5 years ago

There seems to be a bug with _override variable name conflict. Ansible thinks there is custom fixtures and uses the fixture playbook thats in charge of overriding default fixtures.

marioprudhomme commented 5 years ago

When running app/database/fixtures/load on its own, the error doesn't occur. It only occurs when ran from install.yml

marioprudhomme commented 5 years ago

Problem solved (we dont have that playbook anymore in favor of the fixtures/create playbook)