|
|
@ -8,9 +8,11 @@
|
|
|
|
owner: "{{ matrix_user_username }}"
|
|
|
|
owner: "{{ matrix_user_username }}"
|
|
|
|
group: "{{ matrix_user_groupname }}"
|
|
|
|
group: "{{ matrix_user_groupname }}"
|
|
|
|
with_items:
|
|
|
|
with_items:
|
|
|
|
- "{{ matrix_appservice_slack_base_path }}"
|
|
|
|
- { path: "{{ matrix_appservice_slack_base_path }}", when: true }
|
|
|
|
- "{{ matrix_appservice_slack_config_path }}"
|
|
|
|
- { path: "{{ matrix_appservice_slack_config_path }}", when: true }
|
|
|
|
- "{{ matrix_appservice_slack_data_path }}"
|
|
|
|
- { path: "{{ matrix_appservice_slack_data_path }}", when: true }
|
|
|
|
|
|
|
|
- { path: "{{ matrix_appservice_slack_docker_src_files_path }}", when: "{{ matrix_appservice_slack_container_self_build }}" }
|
|
|
|
|
|
|
|
when: item.when|bool
|
|
|
|
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
- set_fact:
|
|
|
|
matrix_appservice_slack_requires_restart: false
|
|
|
|
matrix_appservice_slack_requires_restart: false
|
|
|
@ -35,6 +37,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_appservice_slack_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
|
|
|
|
force_source: "{{ matrix_appservice_slack_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_appservice_slack_docker_image_force_pull }}"
|
|
|
|
force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_appservice_slack_docker_image_force_pull }}"
|
|
|
|
|
|
|
|
when: "not matrix_appservice_slack_container_self_build|bool"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-appservice-slack repository is present when self-building
|
|
|
|
|
|
|
|
git:
|
|
|
|
|
|
|
|
repo: "{{ matrix_appservice_slack_docker_repo }}"
|
|
|
|
|
|
|
|
dest: "{{ matrix_appservice_slack_docker_src_files_path }}"
|
|
|
|
|
|
|
|
force: "yes"
|
|
|
|
|
|
|
|
register: matrix_appservice_slack_git_pull_results
|
|
|
|
|
|
|
|
when: "matrix_appservice_slack_container_self_build|bool"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure matrix-appservice-slack Docker image is built
|
|
|
|
|
|
|
|
docker_image:
|
|
|
|
|
|
|
|
name: "{{ matrix_appservice_slack_docker_image }}"
|
|
|
|
|
|
|
|
source: build
|
|
|
|
|
|
|
|
force_source: yes
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
path: "{{ matrix_appservice_slack_docker_src_files_path }}"
|
|
|
|
|
|
|
|
pull: yes
|
|
|
|
|
|
|
|
when: "matrix_appservice_slack_container_self_build|bool and matrix_appservice_slack_git_pull_results.changed"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Ensure Matrix Appservice Slack config installed
|
|
|
|
- name: Ensure Matrix Appservice Slack config installed
|
|
|
|
copy:
|
|
|
|
copy:
|
|
|
|