Remove Apache2 package when using nginx to avoid clashing
This commit is contained in:
parent
27489db848
commit
0c75ba406c
@ -5,12 +5,24 @@
|
|||||||
state: present
|
state: present
|
||||||
when: not nextcloud_nginx
|
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
|
- name: Ensure nginx package is installed
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: present
|
state: present
|
||||||
when: nextcloud_nginx
|
when: nextcloud_nginx
|
||||||
|
|
||||||
|
- name: Remove Apache2 package
|
||||||
|
ansible.builtin.package:
|
||||||
|
name: apache2
|
||||||
|
state: absent
|
||||||
|
when: nextcloud_nginx
|
||||||
|
|
||||||
- name: Ensure PHP package is installed
|
- name: Ensure PHP package is installed
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: php
|
name: php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user