fix: all praise the allmighty yamllinter
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
---
|
||||
# mautrix-twitter is a Matrix <-> Twitter bridge
|
||||
# See: https://github.com/mautrix/twitter
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- set_fact:
|
||||
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-twitter.service'] }}"
|
||||
when: matrix_mautrix_twitter_enabled|bool
|
||||
|
@ -1,3 +1,5 @@
|
||||
---
|
||||
|
||||
- import_tasks: "{{ role_path }}/tasks/init.yml"
|
||||
tags:
|
||||
- always
|
||||
|
@ -27,17 +27,17 @@
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
with_items:
|
||||
- { path: "{{ matrix_mautrix_twitter_base_path }}", when: true }
|
||||
- { path: "{{ matrix_mautrix_twitter_config_path }}", when: true }
|
||||
- { path: "{{ matrix_mautrix_twitter_data_path }}", when: true }
|
||||
- { path: "{{ matrix_mautrix_twitter_docker_src_files_path }}", when: "{{ matrix_mautrix_twitter_container_image_self_build }}" }
|
||||
- {path: "{{ matrix_mautrix_twitter_base_path }}", when: true}
|
||||
- {path: "{{ matrix_mautrix_twitter_config_path }}", when: true}
|
||||
- {path: "{{ matrix_mautrix_twitter_data_path }}", when: true}
|
||||
- {path: "{{ matrix_mautrix_twitter_docker_src_files_path }}", when: "{{ matrix_mautrix_twitter_container_image_self_build }}"}
|
||||
when: item.when|bool
|
||||
|
||||
- name: Ensure Mautrix Twitter repository is present on self-build
|
||||
git:
|
||||
repo: "{{ matrix_mautrix_twitter_container_image_self_build_repo }}"
|
||||
dest: "{{ matrix_mautrix_twitter_docker_src_files_path }}"
|
||||
# version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
||||
# version: "{{ matrix_coturn_docker_image.split(':')[1] }}"
|
||||
force: "yes"
|
||||
register: matrix_mautrix_twitter_git_pull_results
|
||||
when: "matrix_mautrix_twitter_enabled|bool and matrix_mautrix_twitter_container_image_self_build"
|
||||
@ -50,7 +50,7 @@
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
path: "{{ matrix_mautrix_twitter_docker_src_files_path }}"
|
||||
pull: yes
|
||||
pull: true
|
||||
when: "matrix_mautrix_twitter_enabled|bool and matrix_mautrix_twitter_container_image_self_build|bool"
|
||||
|
||||
- name: Ensure mautrix-twitter config.yaml installed
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-mautrix-twitter.service installation
|
||||
service:
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
when: "matrix_mautrix_twitter_systemd_service_result.changed"
|
||||
|
||||
- name: Ensure matrix-mautrix-twitter.service restarted, if necessary
|
||||
|
@ -9,7 +9,7 @@
|
||||
service:
|
||||
name: matrix-mautrix-twitter
|
||||
state: stopped
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
when: "matrix_mautrix_twitter_service_stat.stat.exists"
|
||||
|
||||
- name: Ensure matrix-mautrix-twitter.service doesn't exist
|
||||
@ -20,5 +20,5 @@
|
||||
|
||||
- name: Ensure systemd reloaded after matrix-mautrix-twitter.service removal
|
||||
service:
|
||||
daemon_reload: yes
|
||||
daemon_reload: true
|
||||
when: "matrix_mautrix_twitter_service_stat.stat.exists"
|
||||
|
Reference in New Issue
Block a user