1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2025-09-09 14:09:29 +00:00

add support for putting site in maintenance mode

This commit is contained in:
Mark Heiges
2016-08-25 15:00:59 -04:00
parent 617467efe5
commit 123058ca68
3 changed files with 192 additions and 7 deletions

View File

@@ -84,9 +84,24 @@
become: yes
- name: install custom login background image
copy: dest='{{ redmine_root_dir }}/public/assets/{{ easyredmine_login_bg_img }}'
copy: dest='{{ item }}'
src='{{ easyredmine_login_bg_img }}'
owner='{{ redmine_owner }}'
with_items:
- '{{ redmine_root_dir }}/public/plugin_assets/easy_extensions/images/login-bg.jpg'
- '{{ redmine_root_dir }}/public/assets/{{ easyredmine_login_bg_img }}'
become: yes
- name: create maintenance dir
file: path='/usr/share/nginx/html/easyredmine'
state=directory
owner='{{ redmine_owner }}'
mode=0755
become: yes
- name: install maintenance.html
copy: dest=/usr/share/nginx/html/easyredmine/maintenance.html_
src=maintenance.html_
owner='{{ redmine_owner }}'
become: yes
- name: restrict config permissions