mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Restart web server(s) as www_front_end completes
This commit is contained in:
parent
a77cfa53b8
commit
6351dc3e57
1 changed files with 15 additions and 0 deletions
|
@ -14,10 +14,12 @@
|
|||
group: "{{ apache_user }}"
|
||||
mode: '0755'
|
||||
|
||||
# Used to be run by httpd/tasks/install.yml
|
||||
- name: "IN CASE NGINX IS DISABLED: Enable IIAB pages via Apache (e.g. on port 80) if apache_install"
|
||||
include_tasks: roles/httpd/tasks/homepage.yml
|
||||
when: apache_install | bool
|
||||
|
||||
# Used to be run by nginx/tasks/install.yml
|
||||
- name: Enable IIAB pages via NGINX (e.g. on port 80) if nginx_install
|
||||
include_tasks: roles/nginx/tasks/homepage.yml
|
||||
when: nginx_install | bool
|
||||
|
@ -48,6 +50,19 @@
|
|||
when: internet_available and not nodocs
|
||||
|
||||
|
||||
- name: (Re)Start '{{ apache_service }}' systemd service, if apache_enabled
|
||||
systemd:
|
||||
name: "{{ apache_service }}" # apache2 on debuntu
|
||||
state: restarted
|
||||
when: apache_enabled | bool
|
||||
|
||||
- name: (Re)Start 'nginx' systemd service, if nginx_enabled
|
||||
systemd:
|
||||
name: nginx
|
||||
state: restarted
|
||||
when: nginx_enabled | bool
|
||||
|
||||
|
||||
# RECORD www_front_end AS INSTALLED
|
||||
|
||||
- name: "Set 'www_front_end_installed: True'"
|
||||
|
|
Loading…
Reference in a new issue