|
|
@ -40,6 +40,26 @@
|
|
|
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
|
|
source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
|
|
|
|
force_source: "{{ matrix_mautrix_telegram_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
|
|
force_source: "{{ matrix_mautrix_telegram_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
|
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_mautrix_telegram_docker_image_force_pull }}"
|
|
|
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_mautrix_telegram_docker_image_force_pull }}"
|
|
|
|
|
|
|
|
when: "matrix_mautrix_telegram_enabled|bool and not matrix_mautrix_telegram_container_self_build|bool"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-mautrix-telegram repository is present when self-building
|
|
|
|
|
|
|
|
git:
|
|
|
|
|
|
|
|
repo: "{{ matrix_mautrix_telegram_docker_repo }}"
|
|
|
|
|
|
|
|
dest: "{{ matrix_mautrix_telegram_docker_src_files_path }}"
|
|
|
|
|
|
|
|
force: "yes"
|
|
|
|
|
|
|
|
register: matrix_mautrix_telegram_git_pull_results
|
|
|
|
|
|
|
|
when: "matrix_mautrix_telegram_enabled|bool and matrix_mautrix_telegram_container_self_build|bool"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-mautrix-telegram Docker image is build
|
|
|
|
|
|
|
|
docker_image:
|
|
|
|
|
|
|
|
name: "{{ matrix_mautrix_telegram_docker_image }}"
|
|
|
|
|
|
|
|
source: build
|
|
|
|
|
|
|
|
force_source: yes
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
path: "{{ matrix_mautrix_telegram_docker_src_files_path }}"
|
|
|
|
|
|
|
|
pull: yes
|
|
|
|
|
|
|
|
when: "matrix_mautrix_telegram_enabled|bool and matrix_mautrix_telegram_container_self_build|bool and matrix_mautrix_telegram_git_pull_results.changed"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure Mautrix Telegram paths exist
|
|
|
|
- name: Ensure Mautrix Telegram paths exist
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|