1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

more apache

This commit is contained in:
Jerry Vonau 2021-06-28 14:05:19 -05:00
parent 731a3858b1
commit 4545856f88

View file

@ -98,16 +98,16 @@
group: "{{ apache_user }}"
#mode: '0770' # Regardless, permissions end up as: drwxrwsrwx
- name: Remove stock /etc/{{ apache_conf_dir }}/moodle.conf
file:
path: "/etc/{{ apache_conf_dir }}/moodle.conf" # apache2/sites-available
state: absent
#- name: Remove stock /etc/{{ apache_conf_dir }}/moodle.conf
# file:
# path: "/etc/{{ apache_conf_dir }}/moodle.conf" # apache2/sites-available
# state: absent
# 2021-02-01: Not nec if we can hopefully migrate from Apache to NGINX soon!
- name: Install /etc/{{ apache_conf_dir }}/022-moodle.conf from template
template:
src: 022-moodle.j2
dest: "/etc/{{ apache_conf_dir }}/022-moodle.conf"
#- name: Install /etc/{{ apache_conf_dir }}/022-moodle.conf from template
# template:
# src: 022-moodle.j2
# dest: "/etc/{{ apache_conf_dir }}/022-moodle.conf"
# roles/postgresql/templates/postgresql-iiab.service WAS INSTALLED HERE:
# /etc/systemd/system/postgresql-iiab.service
@ -148,10 +148,10 @@
state: restarted
#enabled: yes # Service ends up enabled regardless
- name: (Re)Start '{{ apache_service }}' systemd service
systemd:
name: "{{ apache_service }}"
state: restarted
#- name: (Re)Start '{{ apache_service }}' systemd service
# systemd:
# name: "{{ apache_service }}"
# state: restarted
- name: Does {{ moodle_base }}/config.php exist?
stat: