From 617467efe5da3fee56290eeb0acabc11f322ddbc Mon Sep 17 00:00:00 2001 From: Mark Heiges Date: Thu, 25 Aug 2016 10:40:09 -0400 Subject: [PATCH] ensure public/assets is present before installing background image - the dir will not exist in older versions of ER (and background image is not used) --- roles/easyredmine/tasks/redmine.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/easyredmine/tasks/redmine.yml b/roles/easyredmine/tasks/redmine.yml index 286f3a5..d525ed6 100644 --- a/roles/easyredmine/tasks/redmine.yml +++ b/roles/easyredmine/tasks/redmine.yml @@ -76,12 +76,18 @@ become: yes notify: restart nginx +- name: create public/assets dir + file: path='{{ redmine_root_dir }}/public/assets' + state=directory + owner='{{ redmine_owner }}' + mode=0755 + become: yes + - name: install custom login background image copy: dest='{{ redmine_root_dir }}/public/assets/{{ easyredmine_login_bg_img }}' src='{{ easyredmine_login_bg_img }}' owner='{{ redmine_owner }}' become: yes - notify: restart nginx - name: restrict config permissions file: path='{{ redmine_root_dir }}/config'