You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.3 KiB
30 lines
1.3 KiB
3 years ago
|
---
|
||
|
|
||
2 years ago
|
- ansible.builtin.set_fact:
|
||
4 years ago
|
matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mautrix-twitter.service'] }}"
|
||
2 years ago
|
when: matrix_mautrix_twitter_enabled | bool
|
||
4 years ago
|
|
||
|
# If the matrix-synapse role is not used, these variables may not exist.
|
||
2 years ago
|
- ansible.builtin.set_fact:
|
||
2 years ago
|
matrix_homeserver_container_runtime_injected_arguments: >
|
||
3 years ago
|
{{
|
||
2 years ago
|
matrix_homeserver_container_runtime_injected_arguments | default([])
|
||
3 years ago
|
+
|
||
|
["--mount type=bind,src={{ matrix_mautrix_twitter_config_path }}/registration.yaml,dst=/matrix-mautrix-twitter-registration.yaml,ro"]
|
||
|
}}
|
||
4 years ago
|
|
||
2 years ago
|
matrix_homeserver_app_service_runtime_injected_config_files: >
|
||
3 years ago
|
{{
|
||
2 years ago
|
matrix_homeserver_app_service_runtime_injected_config_files | default([])
|
||
3 years ago
|
+
|
||
|
["/matrix-mautrix-twitter-registration.yaml"]
|
||
|
}}
|
||
2 years ago
|
when: matrix_mautrix_twitter_enabled | bool
|
||
4 years ago
|
|
||
|
# ansible lower than 2.8, does not support docker_image build parameters
|
||
|
# for self buildig it is explicitly needed, so we rather fail here
|
||
|
- name: Fail if running on Ansible lower than 2.8 and trying self building
|
||
2 years ago
|
ansible.builtin.fail:
|
||
4 years ago
|
msg: "To self build Mautrix Twitter image, you should usa ansible 2.8 or higher. E.g. pip contains such packages."
|
||
|
when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mautrix_twitter_container_image_self_build"
|