Remove Apache2 package when using nginx to avoid clashing
This commit is contained in:
parent
27489db848
commit
0c75ba406c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user