Added installation and config
This commit is contained in:
@@ -24,10 +24,6 @@
|
|||||||
hosts: collabora_code
|
hosts: collabora_code
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
vars:
|
|
||||||
collabora_code_version: ""
|
|
||||||
collabora_code_domain: "office.test.local"
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure the apt keyrings directory exists
|
- name: Ensure the apt keyrings directory exists
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@@ -53,7 +49,36 @@
|
|||||||
- name: Update apt cache and install Collabora packages
|
- name: Update apt cache and install Collabora packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
|
- apt-transport-https
|
||||||
|
- ca-certificates
|
||||||
- coolwsd
|
- coolwsd
|
||||||
- code-brand
|
- code-brand
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
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