Core (Nextcloud) and Front presumably benefit. Lost the why of
supporting cgi as well. Perhaps cgi was recommended with a default
MPM?
apt: pkg=apache2
- name: Enable Apache2 modules.
- become: yes
- apache2_module:
- name: "{{ item }}"
- loop: [ userdir, cgi ]
- notify: Restart Apache2.
- when: ansible_distribution != 'Debian'
- or 12 > ansible_distribution_major_version|int
-
-- name: Enable Apache2 modules (Debian 12).
become: yes
apache2_module:
name: "{{ item }}"
loop: [ userdir, cgid ]
notify: Restart Apache2.
- when: ansible_distribution == 'Debian'
- and 11 < ansible_distribution_major_version|int
#+END_SRC
With Apache installed there is a =/etc/apache/sites-available/=
apt: pkg=apache2
- name: Enable Apache2 modules.
- become: yes
- apache2_module:
- name: "{{ item }}"
- loop: [ userdir, cgi ]
- notify: Restart Apache2.
- when: ansible_distribution != 'Debian'
- or 12 > ansible_distribution_major_version|int
-
-- name: Enable Apache2 modules (Debian 12).
become: yes
apache2_module:
name: "{{ item }}"
loop: [ userdir, cgid ]
notify: Restart Apache2.
- when: ansible_distribution == 'Debian'
- and 11 < ansible_distribution_major_version|int
- name: Install live web site.
become: yes