Skip to content

ch06 django_manage #5

@tylrd

Description

@tylrd

Cloned ch06 playbook and ran the playbook and keep getting this output for the manage.py tasks.

failed: [web] => (item=syncdb) => {"cmd": "./manage.py syncdb --noinput", 
"failed": true, "item": "syncdb", "msg": "[Errno 13] Permission denied", "rc": 13}
failed: [web] => (item=migrate) => {"cmd": "./manage.py migrate --noinput", 
"failed": true, "item": "migrate", "msg": "[Errno 13] Permission denied", "rc": 13}
failed: [web] => (item=collectstatic) => {"cmd": "./manage.py collectstatic --noinput", 
"failed": true, "item": "collectstatic", "msg": "[Errno 13] Permission denied", "rc": 13}

I've gotten manage.py to run by vagrant ssh, making it executable with chmod +x manage.py and changing the #!/usr/bin/env on the top of the file to the virtual env. How to get around this with ansible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions