first commit
This commit is contained in:
commit
b40c37914c
6 changed files with 107 additions and 0 deletions
50
tasks/install.yml
Normal file
50
tasks/install.yml
Normal file
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
- name: "Install | Add Onlyoffice repository"
|
||||
block:
|
||||
- name: Add repository key
|
||||
ansible.builtin.get_url:
|
||||
url: https://download.onlyoffice.com/GPG-KEY-ONLYOFFICE
|
||||
dest: /etc/apt/trusted.gpg.d/onlyoffice.asc
|
||||
mode: "0644"
|
||||
|
||||
- name: Add repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] https://download.onlyoffice.com/repo/debian squeeze main
|
||||
filename: onlyoffice
|
||||
|
||||
- name: "Install | Set debconf options"
|
||||
ansible.builtin.debconf:
|
||||
name: onlyoffice-documentserver
|
||||
question: "onlyoffice/{{ item.question }}"
|
||||
value: "{{ item.value }}"
|
||||
vtype: "{{ item.vtype }}"
|
||||
loop:
|
||||
- question: db-host
|
||||
value: "{{ onlyoffice_db_host }}"
|
||||
vtype: string
|
||||
- question: db-user
|
||||
value: "{{ onlyoffice_db_user }}"
|
||||
vtype: string
|
||||
- question: db-pwd
|
||||
value: "{{ onlyoffice_db_password }}"
|
||||
vtype: password
|
||||
- question: db-name
|
||||
value: "{{ onlyoffice_db_name }}"
|
||||
vtype: string
|
||||
- question: jwt-enabled
|
||||
value: true
|
||||
vtype: boolean
|
||||
- question: jwt-secret
|
||||
value: "{{ onlyoffice_jwt_secret }}"
|
||||
vtype: password
|
||||
- question: ds-port
|
||||
value: "{{ onlyoffice_ds_port }}"
|
||||
vtype: select
|
||||
|
||||
- name: "Install | Install packages"
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- nginx-extras
|
||||
- rabbitmq-server
|
||||
- onlyoffice-documentserver
|
||||
- ttf-mscorefonts-installer
|
Loading…
Add table
Add a link
Reference in a new issue