2020-02-13 01:53:36 +00:00
# Role "www_back_end" runs here, probably in 3-BASE-SERVER.
# Role "www_front_end" runs later, likely in 4-SERVER-OPTIONS.
#
# (Don't take either name too literally!)
2020-02-12 08:08:16 +00:00
- include_tasks : html.yml
- include_tasks : php-stem.yml
2020-02-13 01:53:36 +00:00
- name : Create dir {{ doc_root }}/home -- if you customized var iiab_home_url e.g. in /etc/iiab/local_vars.yml, that dir is created later -- by www_front_end/tasks/main.yml
2020-02-12 10:23:57 +00:00
file :
state : directory
path : "{{ doc_root }}/home" # /library/www/html
owner : "{{ apache_user }}"
group : "{{ apache_user }}"
2020-02-13 01:53:36 +00:00
# mode: '0755'
2020-02-12 10:23:57 +00:00
2020-02-12 08:08:16 +00:00
- name : Create dir {{ doc_root }}/info for http://box/info offline docs
file :
state : directory
path : "{{ doc_root }}/info" # /library/www/html
owner : "{{ apache_user }}"
group : "{{ apache_user }}"
2020-02-13 01:53:36 +00:00
# mode: '0755'
2020-02-12 08:08:16 +00:00
- name : Install /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (Script can be run manually and/or at the end of Stage 4 = roles/4-server-options/tasks/main.yml)
template :
src : iiab-refresh-wiki-docs.sh
dest : /usr/bin/iiab-refresh-wiki-docs
mode : '0755'
2020-02-13 01:53:36 +00:00
# RECORD www_back_end AS INSTALLED
- name : "Set 'www_back_end_installed: True'"
set_fact :
www_back_end_installed : True
- name : "Add 'www_back_end_installed: True' to {{ iiab_state_file }}"
lineinfile :
path : "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
regexp : '^www_back_end_installed'
line: 'www_back_end_installed : True '