Verified Commit cb1d4c3e authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Make flyspray role deploy

Retain permissions as how they are on the live system, setting 750 will
make nginx unable to read the flyspray directory. Fix when: condition.
parent 2b9c23d6
Pipeline #6735 passed with stage
in 40 seconds
......@@ -17,7 +17,7 @@
register: user_created
- name: fix home permissions
file: state=directory owner="{{ flyspray_user }}" group="{{ flyspray_user }}" path="{{ flyspray_dir }}" mode=0750
file: state=directory owner="{{ flyspray_user }}" group="{{ flyspray_user }}" path="{{ flyspray_dir }}" mode=0755
- name: set up nginx
template: src=nginx.d.conf.j2 dest="{{ flyspray_nginx_conf }}" owner=root group=root mode=644
......@@ -31,7 +31,7 @@
- name: create setup dir with write permissions
file: state=directory owner="{{ flyspray_user }}" group="{{ flyspray_user }}" path="{{ flyspray_dir }}/setup" mode=755
when: falset user_created.changed
when: not user_created.changed
- name: clone flyspray repo
git:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment