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

Try roles/www_back_end in Stage 3 & roles/www_front_end in Stage 4

This commit is contained in:
root 2020-02-12 20:53:36 -05:00
parent c2bda06545
commit efd62be606
57 changed files with 139 additions and 66 deletions

View file

@ -27,11 +27,6 @@
name: usb_lib
when: usb_lib_install | bool
# 2020-02-12: what was roles/homepage lives in roles/web_support & roles/httpd
# for now. Eventually softcoding of iiab_home_url should happen everywhere
# (incl Admin Console) to allow more field options, e.g. changing
# /library/www/html/home even when offline...
- name: CUPS
include_role:
name: cups
@ -42,25 +37,16 @@
name: samba
when: samba_install | bool
# 2020-02-12: DOES THE FLAG BELOW (apache_allow_sudo) WORK WITH NGINX TOO ?
# COMPARE apache_high_php_limits @ web_support/tasks/main.yml
# 2020-02-12: what was roles/homepage lives in roles/www_back_end &
# roles/www_front_end for now. Eventually softcoding of iiab_home_url
# should happen everywhere (incl Admin Console) to allow more field
# options, e.g. changing /library/www/html/home even when offline...
- name: Give {{ apache_user }} (per variable apache_user) permission to poweroff, installing /etc/sudoers.d/020_apache_poweroff from template
template:
src: roles/web_support/templates/020_apache_poweroff.j2
dest: /etc/sudoers.d/020_apache_poweroff
mode: '0755'
when: apache_allow_sudo | bool
- name: Remove {{ apache_user }} (per variable apache_user) permission to poweroff, removing /etc/sudoers.d/020_apache_poweroff
file:
path: /etc/sudoers.d/020_apache_poweroff
state: absent
when: not apache_allow_sudo
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed in Stage 3 = roles/3-base-server/tasks/main.yml, which ran roles/web_support/tasks/main.yml)
command: /usr/bin/iiab-refresh-wiki-docs
when: internet_available and not nodocs
- name: WWW_FRONT_END (WWW_BACK_END should have been installed earlier)
include_role:
name: www_front_end
# when: www_front_end | bool
# when: apache_install or nginx_install
- name: Recording STAGE 4 HAS COMPLETED ==================
lineinfile: