Added installation and config
This commit is contained in:
@@ -24,10 +24,6 @@
|
||||
hosts: collabora_code
|
||||
become: true
|
||||
|
||||
vars:
|
||||
collabora_code_version: ""
|
||||
collabora_code_domain: "office.test.local"
|
||||
|
||||
tasks:
|
||||
- name: Ensure the apt keyrings directory exists
|
||||
ansible.builtin.file:
|
||||
@@ -53,7 +49,36 @@
|
||||
- name: Update apt cache and install Collabora packages
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- coolwsd
|
||||
- code-brand
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
# ================================================================
|
||||
# PLAY 2 — Configure Collabora CODE
|
||||
# ================================================================
|
||||
- name: Configure Collabora CODE
|
||||
hosts: collabora_code
|
||||
become: true
|
||||
|
||||
vars:
|
||||
collabora_code_domain: "office.test.local"
|
||||
collabora_admin_password: "Start2026!" #ÄNDERN
|
||||
nextcloud_domain: "cloud.test.local"
|
||||
|
||||
tasks:
|
||||
- name: Configure Collabora CODE to use the correct domain
|
||||
ansible.builtin.shell:
|
||||
cmd: coolconfig set storage.wopi.host {{ nextcloud_domain }}
|
||||
- name: Configure Collabora CODE to disable SSL
|
||||
ansible.builtin.shell:
|
||||
cmd: coolconfig set ssl.enable false && coolconfig set ssl.termination true
|
||||
- name: Configure Collabora CODE to set the admin password
|
||||
ansible.builtin.shell:
|
||||
cmd: coolconfig set set-admin-password {{ collabora_admin_password }}
|
||||
- name: Restart Collabora CODE service
|
||||
ansible.builtin.service:
|
||||
name: coolwsd
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user