diff --git a/tasks/packages.yaml b/tasks/packages.yaml index fa7be4a..d24226a 100644 --- a/tasks/packages.yaml +++ b/tasks/packages.yaml @@ -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