Remove Apache2 package when using nginx to avoid clashing

This commit is contained in:
Corbin Bartsch 2022-04-10 22:41:08 -04:00
parent 27489db848
commit 0c75ba406c
Signed by: coredotbin
GPG Key ID: 32D3B80A08D93212

View File

@ -5,12 +5,24 @@
state: present
when: not nextcloud_nginx
- name: Remove nginx package
ansible.builtin.package:
name: nginx
state: absent
when: not nextcloud_nginx
- name: Ensure nginx package is installed
ansible.builtin.package:
name: nginx
state: present
when: nextcloud_nginx
- name: Remove Apache2 package
ansible.builtin.package:
name: apache2
state: absent
when: nextcloud_nginx
- name: Ensure PHP package is installed
ansible.builtin.package:
name: php