Add script for installing OnlyOffice.
This commit is contained in:
parent
3265dc3cfa
commit
6e48c25e9c
15
local.yml
15
local.yml
@ -37,6 +37,7 @@
|
|||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Additional setup for systems with GUI.
|
# Additional setup for systems with GUI.
|
||||||
- name: Main | Workstation UI Setup
|
- name: Main | Workstation UI Setup
|
||||||
hosts: workstation
|
hosts: workstation
|
||||||
@ -67,6 +68,7 @@
|
|||||||
- include: tasks/workstation/settings/gnome.yml
|
- include: tasks/workstation/settings/gnome.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Additional setup for miners!
|
# Additional setup for miners!
|
||||||
- name: Main | Miner Setup
|
- name: Main | Miner Setup
|
||||||
hosts: miner
|
hosts: miner
|
||||||
@ -109,6 +111,19 @@
|
|||||||
- include: tasks/miner/cron/mfn.yml
|
- include: tasks/miner/cron/mfn.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Easy to deploy server configurations.
|
||||||
|
- name: Main | Server Setup
|
||||||
|
hosts: server
|
||||||
|
connection: local
|
||||||
|
become: true
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: tasks/server/onlyoffice.yml
|
||||||
|
when: onlyoffice is defined and ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Create reports to analyze security.
|
# Create reports to analyze security.
|
||||||
- name: Main | Hardness Tests
|
- name: Main | Hardness Tests
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
45
tasks/server/onlyoffice.yml
Normal file
45
tasks/server/onlyoffice.yml
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
# Create OnlyOffice server for use with Nextcloud.
|
||||||
|
|
||||||
|
## Install ##
|
||||||
|
# https://helpcenter.onlyoffice.com/installation/docs-community-install-ubuntu.aspx
|
||||||
|
|
||||||
|
# Dependencies #
|
||||||
|
|
||||||
|
- name: Server | OnlyOffice | Postgres | Install
|
||||||
|
package:
|
||||||
|
name: postgresql
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Server | OnlyOffice | Postgres | Configure
|
||||||
|
shell: '{{ item }}'
|
||||||
|
loop:
|
||||||
|
- 'sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;"'
|
||||||
|
- 'sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"'
|
||||||
|
- 'sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"'
|
||||||
|
|
||||||
|
- name: Server | OnlyOffice | RabbitMQ | Install
|
||||||
|
package:
|
||||||
|
name: rabbitmq-server
|
||||||
|
state: present
|
||||||
|
|
||||||
|
# Actual Program #
|
||||||
|
|
||||||
|
- name: Server | OnlyOffice | Docs | Add Repo
|
||||||
|
shell: '{{ item }}'
|
||||||
|
loop:
|
||||||
|
- 'apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5'
|
||||||
|
- 'echo "deb https://download.onlyoffice.com/repo/debian squeeze main" | tee /etc/apt/sources.list.d/onlyoffice.list'
|
||||||
|
- 'apt update'
|
||||||
|
|
||||||
|
- name: Server | OnlyOffice | Docs | Install
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- ttf-mscorefonts-installer
|
||||||
|
- onlyoffice-documentserver
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## HTTPS ##
|
||||||
|
# https://helpcenter.onlyoffice.com/installation/docs-community-https-linux.aspx
|
Loading…
x
Reference in New Issue
Block a user