ansible/roles/collabora/tasks/main.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-17 12:45:33 +01:00
---
- name: Install gpg (to import Collabora key)
apt:
2024-02-20 20:44:57 +01:00
name:
- gpg
- python3-debian
2024-02-17 12:45:33 +01:00
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Import Collabora GPG signing key
2024-02-20 20:44:57 +01:00
get_url:
2024-02-17 12:45:33 +01:00
url: https://www.collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
2024-02-20 20:44:57 +01:00
dest: /usr/share/keyrings/collaboraonline-release-keyring.gpg
2024-02-17 12:45:33 +01:00
- name: Add Collabora repository
2024-02-20 20:44:57 +01:00
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
2024-02-17 12:45:33 +01:00
- name: Install Collabora
apt:
2024-02-20 20:44:57 +01:00
name:
- coolwsd
- code-brand
- collaboraoffice*
2024-02-17 12:45:33 +01:00
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure Collabora
template:
2024-02-20 20:44:57 +01:00
src: coolwsd.xml.j2
2024-02-17 12:45:33 +01:00
dest: /etc/coolwsd/coolwsd.xml
2024-02-20 20:44:57 +01:00
mode: u=rw,g=r,o=
notify: Restart Collabora
2024-02-17 12:45:33 +01:00
- name: Enable and start Collabora
systemd:
name: coolwsd
enabled: true
state: started
daemon_reload: true
2024-02-20 20:44:57 +01:00
...