# Base Server

- name: ...IS BEGINNING =====================================
  command: echo

- name: MYSQL
  include_role:
    name: mysql
  #when: mysql_install

# 2020-05-21: Apache role 'httpd' is installed as nec by any of these 7 roles:
#
#    cups, elgg, lokole, moodle, nodered, pbx, phpmyadmin
#
# These 14 roles conditionally touch /etc/apache2/sites-available/*.conf files:
#
#    awstats, calibre-web, gitea, internetarchive, kalite, kiwix, kolibri,
#    mediawiki, munin, nextcloud, sugarizer, usb_lib, wordpress, www_options
#
# SEE ALSO: https://github.com/iiab/iiab/blob/master/roles/nginx/README.md

- name: NGINX
  include_role:
    name: nginx
  #when: nginx_install

- name: WWW_BASE (WWW_OPTIONS should be installed later)
  include_role:
    name: www_base
  #when: www_base_install    # Flag might be created in future?

- name: Recording STAGE 3 HAS COMPLETED =====================
  lineinfile:
    path: "{{ iiab_env_file }}"
    regexp: '^STAGE=*'
    line: 'STAGE=3'
