mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-11-24 16:28:03 +01:00
add collabora
This commit is contained in:
parent
9bc26be65d
commit
cc3d3687b7
3 changed files with 67 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
- import_playbook: charasheet.yaml # noqa: name[play]
|
||||
- import_playbook: checkout.yaml # noqa: name[play]
|
||||
- import_playbook: code.yaml # noqa: name[play]
|
||||
- import_playbook: collabora.yaml # noqa: name[play]
|
||||
- import_playbook: ghost-update.yaml # noqa: name[play]
|
||||
- import_playbook: gitea.yaml # noqa: name[play]
|
||||
- import_playbook: goatcounter.yaml # noqa: name[play]
|
||||
|
|
52
playbooks/apps/collabora.yaml
Normal file
52
playbooks/apps/collabora.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
- name: Collabora
|
||||
hosts: servers
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Create dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ dir }}"
|
||||
state: directory
|
||||
mode: "0775"
|
||||
- name: Write files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ dir }}/"
|
||||
mode: preserve
|
||||
with_fileglob:
|
||||
- files/{{ app_name }}/*
|
||||
- files/{{ app_name }}/.*
|
||||
notify:
|
||||
- Restart service
|
||||
- name: Write templates
|
||||
ansible.builtin.template:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ dir }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
|
||||
mode: preserve
|
||||
with_fileglob:
|
||||
- templates/{{ app_name }}/*.j2
|
||||
- templates/{{ app_name }}/.*.j2
|
||||
notify:
|
||||
- Restart service
|
||||
- name: Ensure service is started
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ dir }}"
|
||||
state: present
|
||||
|
||||
handlers:
|
||||
- name: Restart service
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ dir }}"
|
||||
state: restarted
|
||||
|
||||
vars:
|
||||
app_name: collabora
|
||||
dir: /mnt/data/{{ app_name }}
|
||||
password: !vault |
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
64396634656334643030623536313236663438653730663266346530326233353836656339356631
|
||||
3762666139313164663236323936626530623334356663620a336232383763333039643834636131
|
||||
66396663393662316535346530656636343931383833313234653338623934346265363563366138
|
||||
3838653135306563340a656661343434663230336566396335633165356663633030383065626233
|
||||
34633162303534353231636537613262653865646231313464316164653239376166316266663963
|
||||
6163643335386535366239363637613066306661343866393433
|
14
playbooks/apps/templates/collabora/docker-compose.yaml.j2
Normal file
14
playbooks/apps/templates/collabora/docker-compose.yaml.j2
Normal file
|
@ -0,0 +1,14 @@
|
|||
services:
|
||||
code:
|
||||
image: collabora/code
|
||||
restart: always
|
||||
environment:
|
||||
server_name: 'cloud.augendre.info'
|
||||
aliasgroup1: 'https://cloud.augendre.info:443'
|
||||
DONT_GEN_SSL_CERT: '1'
|
||||
username: admin
|
||||
password: "{{password}}"
|
||||
extra_params: '--o:ssl.enable=false --o:ssl.termination=true'
|
||||
mem_limit: 2g
|
||||
ports:
|
||||
- "8007:9980"
|
Loading…
Reference in a new issue