Add nginx.yaml task file to coolwsd role
This commit is contained in:
parent
348202a3cc
commit
4d35d8143c
5 changed files with 43 additions and 39 deletions
|
@ -40,24 +40,6 @@
|
|||
- php-pecl-redis
|
||||
- python3-pyOpenSSL
|
||||
|
||||
- name: Import Collabora key
|
||||
ansible.builtin.rpm_key:
|
||||
state: present
|
||||
key: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos8/repodata/repomd.xml.key
|
||||
|
||||
- name: Add Collabora repository for Red Hat distros
|
||||
yum_repository:
|
||||
name: CollaboraOnline
|
||||
description: Collabora Online
|
||||
baseurl: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos8
|
||||
|
||||
- name: Install Collabora Online Packages
|
||||
package:
|
||||
name:
|
||||
- coolwsd
|
||||
- CODE-brand
|
||||
state: latest
|
||||
|
||||
- name: Check if the '/var/lib/pgsql/data' directory exists
|
||||
ansible.builtin.stat:
|
||||
path: "/var/lib/pgsql/data"
|
||||
|
|
35
nextcloud/ansible/roles/coolwsd/tasks/main.yaml
Normal file
35
nextcloud/ansible/roles/coolwsd/tasks/main.yaml
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
# tasks file for coolwsd
|
||||
|
||||
#TODO: Esta parte hay que sacarla de nuestros propios repos
|
||||
- name: Import Collabora key
|
||||
ansible.builtin.rpm_key:
|
||||
state: present
|
||||
key: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos8/repodata/repomd.xml.key
|
||||
|
||||
- name: Add Collabora repository for Red Hat distros
|
||||
yum_repository:
|
||||
name: CollaboraOnline
|
||||
description: Collabora Online
|
||||
baseurl: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos8
|
||||
|
||||
- name: Install Collabora Online Packages
|
||||
package:
|
||||
name:
|
||||
- coolwsd
|
||||
- CODE-brand
|
||||
state: latest
|
||||
|
||||
- name: Copy collabora configuration files
|
||||
template:
|
||||
src: templates/coolwsd.xml.j2
|
||||
dest: /etc/coolwsd/coolwsd.xml
|
||||
|
||||
- name: Enable Libre Office Web services
|
||||
systemd:
|
||||
name: coolwsd
|
||||
enabled: yes
|
||||
state: restarted
|
||||
tags:
|
||||
- nextcloud_collabora
|
||||
|
|
@ -3,20 +3,6 @@
|
|||
- name: Configure coolwsd for nginx
|
||||
template: src=coolwsd.conf.j2 dest="{{ nginx_path }}/nextcloud/coolwsd.conf"
|
||||
|
||||
# tasks file for coolwsd
|
||||
- name: Copy collabora configuration files
|
||||
template:
|
||||
src: templates/coolwsd.xml.j2
|
||||
dest: /etc/coolwsd/coolwsd.xml
|
||||
|
||||
- name: Enable Libre Office Web services
|
||||
systemd:
|
||||
name: coolwsd
|
||||
enabled: yes
|
||||
state: restarted
|
||||
tags:
|
||||
- nextcloud_collabora
|
||||
|
||||
- name: Install Collabora Office nextcloud app
|
||||
ansible.builtin.shell:
|
||||
cmd: /usr/bin/php "{{ nextcloud_occ }}" app:install richdocuments
|
|
@ -27,16 +27,17 @@
|
|||
roles:
|
||||
- { role: redis, become=yes, become_user=root }
|
||||
|
||||
- hosts: nextcloud
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
roles:
|
||||
- { role: nextcloud, become=yes, become_user=root }
|
||||
|
||||
- hosts: coolwsd
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
roles:
|
||||
- { role: coolwsd, become=yes, become_user=root }
|
||||
|
||||
- hosts: nextcloud
|
||||
vars_files:
|
||||
- "vars/{{ ansible_facts['os_family'] }}.yaml"
|
||||
roles:
|
||||
- { role: nextcloud, become=yes, become_user=root }
|
||||
- { role: coolwsd, become=yes, become_user=root, tasks_from=nginx }
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ nextcloud_s3_enabled: true
|
|||
nextcloud_s3_bucket: nextcloud-test
|
||||
nextcloud_s3_key: nextcloud
|
||||
nextcloud_s3_secret: deemilaucsyoodkilCyct2FrapMell
|
||||
nextcloud_s3_hostname: 10.201.15.144
|
||||
nextcloud_s3_hostname: 10.201.15.144
|
||||
|
||||
# LDAP SECTION
|
||||
ldap_agent_password: prueba123!
|
||||
|
|
Loading…
Reference in a new issue