collabora_docserver/tasks/main.yml

55 lines
1.4 KiB
YAML
Raw Normal View History

2023-01-23 18:53:52 +01:00
---
- name: Set OS dependent variables
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_distribution | lower }}_{{ ansible_distribution_version | lower }}.yml"
- "{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version | lower }}.yml"
- "{{ ansible_distribution | lower }}.yml"
- "{{ ansible_os_family | lower }}.yml"
- "{{ ansible_system | lower }}.yml"
paths:
- '{{ role_path }}/vars'
ignore_errors: True
- name: OS is supported
ansible.builtin.assert:
that: __os_supported
quiet: True
vars:
__os_supported: "{{ lookup('vars', '{}_os_supported'.format(role_name)) | bool }}"
- name: Download apt repo key
get_url:
url: https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
dest: /usr/share/keyrings/collaboraonline-release-keyring.gpg
owner: root
group: root
- name: Set apt source
template:
src: apt-sources.j2
dest: /etc/apt/sources.list.d/collaboraonline.sources
owner: root
group: root
- name: Install docserver
apt:
pkg:
- coolwsd
- code-brand
update_cache: yes
2023-01-23 19:03:51 +01:00
- name: Set config file
template:
src: coolwsd.xml.j2
dest: /etc/coolwsd/coolwsd.xml
owner: cool
group: cool
- name: Restart doc server
service:
name: coolwsd
state: restarted
enabled: yes