stackhpc / ansible-role-os-images

Ansible role to build and upload OpenStack instance images
Apache License 2.0
6 stars 6 forks source link

Need root permissions to create image cache directory #13

Closed verdurin closed 5 years ago

verdurin commented 6 years ago

I found that this task failed:

TASK [stackhpc.os-images : Ensure download cache dir exists] **********************************************************************************************************************************************
task path: /home/kayobe/kayobe/src/kayobe/ansible/roles/stackhpc.os-images/tasks/main.yml:20
fatal: [seed-vm]: FAILED! => {"changed": false, "msg": "There was an issue creating /opt/kayobe/images as requested: [Errno 13] Permission denied: '/opt/kayobe/images'", "path": "/opt/kayobe/images", "state": "absent”}

so here is a suggested fix.

oneswig commented 6 years ago

I created this https://github.com/stackhpc/ansible-role-os-images/pull/13 based on Adam's PR, will also try it out some more.