chore(barad_dur): fix lints

This commit is contained in:
Jan Christian Grünhage 2023-07-06 22:40:17 +02:00
parent d248f5947e
commit da04b82985
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
8 changed files with 18 additions and 19 deletions

View file

@ -49,7 +49,7 @@ deploying commonly used matrix services:
able to run in the browser, maintained by element.
- [`hedwig`](roles/hedwig/README.md): Hedwig, a push-gateway server alternative
to `sygnal`, developed by Famedly.
- [`barad-dur`](roles/barad-dur/README.md): Barad-dûr, a matrix phone-home stats collector alternative, developed by Famedly.
- [`barad_dur`](roles/barad_dur/README.md): Barad-dûr, a matrix phone-home stats collector alternative, developed by Famedly.
### Unmaintained roles

View file

@ -1,7 +0,0 @@
---
- name: restart-barad-dur
docker_container:
name: "{{ barad_dur_container_name }}"
state: started
restart: yes

View file

@ -0,0 +1,8 @@
---
- name: Restart barad-dur container
community.docker.docker_container:
name: "{{ barad_dur_container_name }}"
state: started
restart: true
listen: restart-barad-dur

View file

@ -6,8 +6,7 @@
state: present
system: true
register: barad_dur_user_res
tags: [ 'prepare', 'prepare-barad_dur',
'deploy', 'deploy-barad_dur' ]
tags: ['prepare', 'prepare-barad_dur', 'deploy', 'deploy-barad_dur']
- name: Create base-directory for barad-dur [{{ barad_dur_base_path }}]
file:
@ -29,7 +28,7 @@
tags: ['deploy', 'deploy-barad_dur']
- name: Pull barad-dur container
docker_image:
community.docker.docker_image:
name: "{{ barad_dur_container_image_reference }}"
source: pull
state: present
@ -41,7 +40,7 @@
tags: ['prepare', 'prepare-barad_dur']
- name: Start barad-dur container
docker_container:
community.docker.docker_container:
name: "{{ barad_dur_container_name }}"
image: "{{ barad_dur_container_image_reference }}"
env: "{{ barad_dur_container_env }}"

View file

@ -1,5 +1,4 @@
---
barad_dur_container_base_volumes:
- "{{ barad_dur_config_file }}:{{ barad_dur_container_base_path }}/config.yaml:ro"