diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml index f6570d8..118b606 100644 --- a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml @@ -197,10 +197,17 @@ SSLCertificateKeyFile /etc/ssl/private/office-selfsigned.key - - name: Enable Collabora virtual host - ansible.builtin.apache2_site: - name: collabora.conf - state: enabled + - name: Disable default Apache site + ansible.builtin.command: a2dissite 000-default + args: + removes: /etc/apache2/sites-enabled/000-default.conf + notify: Restart Apache + + - name: Enable Collabora Apache site + ansible.builtin.command: a2ensite collabora + args: + creates: /etc/apache2/sites-enabled/collabora.conf + notify: Restart Apache - name: Restart Apache to apply changes ansible.builtin.service: