mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-13 04:32:28 +00:00
update riot and fix docker deployment
This commit is contained in:
parent
b75788001c
commit
e152b08896
2 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
riot_version: 1.3.3
|
||||
riot_webapp_dir: /opt/riot/
|
||||
riot_version: 1.5.8
|
||||
riot_webapp_dir: /opt/riot
|
||||
riot_config:
|
||||
brand: Riot
|
||||
bug_report_endpoint_url: https://riot.im/bugreports/submit
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
import_tasks: download.yml
|
||||
when: riot_deployment_method == "webroot"
|
||||
|
||||
- name: Create riot directory for docker configs
|
||||
file:
|
||||
dest: "{{ riot_webapp_dir }}/riot-v{{ riot_version }}"
|
||||
state: directory
|
||||
|
||||
- name: Write main configuration
|
||||
copy:
|
||||
content: "{{ riot_config | to_nice_json }}"
|
||||
|
@ -17,13 +22,12 @@
|
|||
copy:
|
||||
content: "{{ item.config | to_nice_json }}"
|
||||
dest: "{{ riot_webapp_dir }}/riot-v{{ riot_version }}/config.{{ item.domain }}.json"
|
||||
loop: "riot_domain_configs"
|
||||
loop: "{{ riot_domain_configs }}"
|
||||
|
||||
- name: Deploy docker container
|
||||
docker_container:
|
||||
docker_container:
|
||||
name: "riot-web"
|
||||
image: "docker.io/vectorim/riot-web:{{ riot_version }}"
|
||||
image: "docker.io/vectorim/riot-web:v{{ riot_version }}"
|
||||
ports: "{{ riot_docker_ports }}"
|
||||
labels: "{{ riot_docker_labels }}"
|
||||
restart_policy: unless-stopped
|
||||
|
|
Loading…
Reference in a new issue