mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
split to file
This commit is contained in:
parent
8e53b294c0
commit
eadeb114e7
2 changed files with 50 additions and 45 deletions
|
@ -59,51 +59,8 @@
|
|||
- { src: 'ports.conf' , dest: '/etc/{{ apache_service }}/' , mode: '0644' }
|
||||
when: is_debuntu | bool and nginx_enabled | bool
|
||||
|
||||
- name: Install nginx's config file from template, if moodle_enabled
|
||||
template:
|
||||
src: moodle-nginx.conf.j2
|
||||
dest: "/etc/nginx/conf.d/moodle-nginx.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: moodle_enabled | bool
|
||||
|
||||
- name: Install /etc/nginx/conf.d/elgg-nginx.conf from template
|
||||
template:
|
||||
src: elgg-nginx.conf
|
||||
dest: "/etc/nginx/conf.d/elgg-nginx.conf"
|
||||
when: elgg_enabled | bool
|
||||
|
||||
- name: Install /etc/nginx/lokole-nginx.conf from template
|
||||
template:
|
||||
src: lokole-nginx.conf.j2
|
||||
dest: "/etc/nginx/conf.d/lokole-nginx.conf"
|
||||
when: lokole_enabled | bool
|
||||
|
||||
- name: Install MediaWiki's nginx conf.d file from template
|
||||
template:
|
||||
src: mediawiki-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/mediawiki-nginx.conf
|
||||
when: mediawiki_enabled | bool
|
||||
|
||||
- name: Install WordPress's nginx conf.d file from template
|
||||
template: src=nextcloud-nginx.conf dest=/etc/nginx/conf.d/nextcloud-nginx.conf
|
||||
when: nextcloud_enabled | bool
|
||||
|
||||
- name: Install NodeRed's nginx conf.d file from template
|
||||
template:
|
||||
src: nodered-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/nodered-nginx.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0666
|
||||
when: nodered_enabled | bool
|
||||
|
||||
- name: Install WordPress's nginx conf.d file from template
|
||||
template:
|
||||
src: wordpress-nginx.conf
|
||||
dest: /etc/nginx/conf.d/
|
||||
when: wordpress_enabled | bool
|
||||
- name: Install proxpass to apache running on localhost
|
||||
include_tasks: uses_apache.yml
|
||||
|
||||
- name: Make sure nginx picks up the config
|
||||
service:
|
||||
|
|
48
roles/nginx/tasks/uses_apache.yml
Normal file
48
roles/nginx/tasks/uses_apache.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
- name: Install nginx's config file from template, if moodle_enabled
|
||||
template:
|
||||
src: moodle-nginx.conf.j2
|
||||
dest: "/etc/nginx/conf.d/moodle-nginx.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
when: moodle_enabled | bool
|
||||
|
||||
- name: Install /etc/nginx/conf.d/elgg-nginx.conf from template
|
||||
template:
|
||||
src: elgg-nginx.conf
|
||||
dest: "/etc/nginx/conf.d/elgg-nginx.conf"
|
||||
when: elgg_enabled | bool
|
||||
|
||||
- name: Install /etc/nginx/lokole-nginx.conf from template
|
||||
template:
|
||||
src: lokole-nginx.conf.j2
|
||||
dest: "/etc/nginx/conf.d/lokole-nginx.conf"
|
||||
when: lokole_enabled | bool
|
||||
|
||||
- name: Install MediaWiki's nginx conf.d file from template
|
||||
template:
|
||||
src: mediawiki-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/mediawiki-nginx.conf
|
||||
when: mediawiki_enabled | bool
|
||||
|
||||
- name: Install WordPress's nginx conf.d file from template
|
||||
template: src=nextcloud-nginx.conf dest=/etc/nginx/conf.d/nextcloud-nginx.conf
|
||||
when: nextcloud_enabled | bool
|
||||
|
||||
- name: Install NodeRed's nginx conf.d file from template
|
||||
template:
|
||||
src: nodered-nginx.conf.j2
|
||||
dest: /etc/nginx/conf.d/nodered-nginx.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0666
|
||||
when: nodered_enabled | bool
|
||||
|
||||
- name: Install WordPress's nginx conf.d file from template
|
||||
template:
|
||||
src: wordpress-nginx.conf
|
||||
dest: /etc/nginx/conf.d/
|
||||
when: wordpress_enabled | bool
|
||||
|
||||
#- name: Install proxpass to apache running on localhost
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue