1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #334 from iiab/master

sync from iiab:master
This commit is contained in:
A Holt 2020-01-12 08:59:06 -05:00 committed by GitHub
commit 3096147d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 20 deletions

View file

@ -6,7 +6,7 @@
- name: HTTPD (APACHE) - name: HTTPD (APACHE)
include_role: include_role:
name: httpd name: httpd
when: apache_install when: apache_install | bool
tags: base, httpd tags: base, httpd
- name: MYSQL - name: MYSQL
@ -17,11 +17,11 @@
- name: Install nginx - name: Install nginx
include_tasks: roles/nginx/tasks/install.yml include_tasks: roles/nginx/tasks/install.yml
when: nginx_install when: nginx_install | bool
- name: Install dnsmasq - name: Install dnsmasq
include_tasks: roles/network/tasks/dnsmasq.yml include_tasks: roles/network/tasks/dnsmasq.yml
when: dnsmasq_install when: dnsmasq_install | bool
tags: base, domain, dnsmasq, network tags: base, domain, dnsmasq, network
- name: Recording STAGE 3 HAS COMPLETED ===================== - name: Recording STAGE 3 HAS COMPLETED =====================

View file

@ -38,17 +38,18 @@
name: calibre-web name: calibre-web
tags: calibre-web tags: calibre-web
# could split this two below to stage 10? # Could split these two below to Stage 10?
- name: Configure NGINX - name: Configure NGINX
include_role: include_role:
name: nginx name: nginx
when: nginx_install when: nginx_install | bool
tags: base, nginx tags: base, nginx
- name: Configure Apache systemd service ({{ apache_service }}) - name: Configure Apache systemd service ({{ apache_service }})
include_role: include_role:
name: httpd-enable name: httpd-enable
when: apache_install when: apache_install | bool
tags: base, httpd tags: base, httpd
- name: Recording STAGE 9 HAS COMPLETED ==================== - name: Recording STAGE 9 HAS COMPLETED ====================

View file

@ -17,9 +17,9 @@
template: template:
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
owner: root # owner: root
group: root # group: root
mode: 0644 # mode: 0644
with_items: with_items:
- { src: 'roles/httpd/templates/010-iiab.conf.j2', dest: '/etc/{{ apache_config_dir }}/010-iiab.conf' } - { src: 'roles/httpd/templates/010-iiab.conf.j2', dest: '/etc/{{ apache_config_dir }}/010-iiab.conf' }
- { src: 'roles/httpd/templates/proxy_ajp.conf.j2', dest: '/etc/{{ apache_config_dir }}/proxy_ajp.conf' } - { src: 'roles/httpd/templates/proxy_ajp.conf.j2', dest: '/etc/{{ apache_config_dir }}/proxy_ajp.conf' }
@ -36,17 +36,17 @@
copy: copy:
src: roles/httpd/files/osm.conf src: roles/httpd/files/osm.conf
dest: "/etc/{{ apache_config_dir }}" dest: "/etc/{{ apache_config_dir }}"
owner: root # owner: root
group: root # group: root
mode: 0644 # mode: 0644
when: osm_vector_maps_install | bool when: osm_vector_maps_install | bool
- name: Symlink /etc/apache2/sites-enabled/osm.conf to /etc/{{ apache_config_dir }}/osm.conf (debuntu) - name: Symlink /etc/apache2/sites-enabled/osm.conf -> /etc/{{ apache_config_dir }}/osm.conf (debuntu)
file: file:
src: "/etc/{{ apache_config_dir }}/osm.conf" src: "/etc/{{ apache_config_dir }}/osm.conf"
path: /etc/apache2/sites-enabled/osm.conf path: /etc/apache2/sites-enabled/osm.conf
state: link state: link
when: is_debuntu | bool and osm_vector_maps_enabled | bool when: is_debuntu and osm_vector_maps_enabled
- name: Give {{ apache_user }} (per variable apache_user) permission to poweroff, installing /etc/sudoers.d/020_apache_poweroff from template - name: Give {{ apache_user }} (per variable apache_user) permission to poweroff, installing /etc/sudoers.d/020_apache_poweroff from template
template: template:

View file

@ -5,37 +5,37 @@
- name: Install {{ nginx_config_dir }}/dokuwiki-nginx.conf from template, if dokuwiki_enabled - name: Install {{ nginx_config_dir }}/dokuwiki-nginx.conf from template, if dokuwiki_enabled
template: template:
src: dokuwiki-nginx.conf src: dokuwiki-nginx.conf
dest: {{ nginx_config_dir }}/dokuwiki-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/dokuwiki-nginx.conf" # /etc/nginx/conf.d
when: dokuwiki_enabled | bool when: dokuwiki_enabled | bool
- name: Install {{ nginx_config_dir }}/elgg-nginx.conf from template, if elgg_enabled - name: Install {{ nginx_config_dir }}/elgg-nginx.conf from template, if elgg_enabled
template: template:
src: elgg-nginx.conf src: elgg-nginx.conf
dest: {{ nginx_config_dir }}/elgg-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/elgg-nginx.conf" # /etc/nginx/conf.d
when: elgg_enabled | bool when: elgg_enabled | bool
- name: Install {{ nginx_config_dir }}/lokole-nginx.conf from template, if lokole_enabled - name: Install {{ nginx_config_dir }}/lokole-nginx.conf from template, if lokole_enabled
template: template:
src: lokole-nginx.conf.j2 src: lokole-nginx.conf.j2
dest: {{ nginx_config_dir }}/lokole-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/lokole-nginx.conf" # /etc/nginx/conf.d
when: lokole_enabled | bool when: lokole_enabled | bool
- name: Install {{ nginx_config_dir }}/moodle-nginx.conf from template, if moodle_enabled - name: Install {{ nginx_config_dir }}/moodle-nginx.conf from template, if moodle_enabled
template: template:
src: moodle-nginx.conf.j2 src: moodle-nginx.conf.j2
dest: {{ nginx_config_dir }}/moodle-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/moodle-nginx.conf" # /etc/nginx/conf.d
when: moodle_enabled | bool when: moodle_enabled | bool
- name: Install {{ nginx_config_dir }}/nextcloud-nginx.conf from template, if nextcloud_enabled - name: Install {{ nginx_config_dir }}/nextcloud-nginx.conf from template, if nextcloud_enabled
template: template:
src: nextcloud-nginx.conf src: nextcloud-nginx.conf
dest: {{ nginx_config_dir }}/nextcloud-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/nextcloud-nginx.conf" # /etc/nginx/conf.d
when: nextcloud_enabled | bool when: nextcloud_enabled | bool
- name: Install {{ nginx_config_dir }}/nodered-nginx.conf from template, if nodered_enabled - name: Install {{ nginx_config_dir }}/nodered-nginx.conf from template, if nodered_enabled
template: template:
src: nodered-nginx.conf.j2 src: nodered-nginx.conf.j2
dest: {{ nginx_config_dir }}/nodered-nginx.conf # /etc/nginx/conf.d dest: "{{ nginx_config_dir }}/nodered-nginx.conf" # /etc/nginx/conf.d
# mode: '0666' # mode: '0666'
when: nodered_enabled | bool when: nodered_enabled | bool