ansible/roles/collabora/tasks/main.yml
2024-02-20 20:44:57 +01:00

49 lines
1.1 KiB
YAML

---
- name: Install gpg (to import Collabora key)
apt:
name:
- gpg
- python3-debian
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Import Collabora GPG signing key
get_url:
url: https://www.collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
dest: /usr/share/keyrings/collaboraonline-release-keyring.gpg
- name: Add Collabora repository
deb822_repository:
name: collabora
types: deb
uris: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb
suites: ./
signed_by: /usr/share/keyrings/collaboraonline-release-keyring.gpg
- name: Install Collabora
apt:
name:
- coolwsd
- code-brand
- collaboraoffice*
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure Collabora
template:
src: coolwsd.xml.j2
dest: /etc/coolwsd/coolwsd.xml
mode: u=rw,g=r,o=
notify: Restart Collabora
- name: Enable and start Collabora
systemd:
name: coolwsd
enabled: true
state: started
daemon_reload: true
...