Fix weird path creation

Fixes #403 (Github Issue).
This commit is contained in:
Slavi Pantaleev
2020-03-18 18:24:03 +02:00
parent b6cf5758cc
commit 027056e027
6 changed files with 30 additions and 30 deletions

View File

@ -18,16 +18,17 @@
- name: Ensure Mautrix Facebook paths exist
file:
path: "{{ item }}"
path: "{{ item.path }}"
state: directory
mode: 0750
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_username }}"
with_items:
- "{{ matrix_mautrix_facebook_base_path }}"
- "{{ matrix_mautrix_facebook_config_path }}"
- "{{ matrix_mautrix_facebook_data_path }}"
- { src: "{{ matrix_mautrix_facebook_docker_src_files_path }}", when: "{{ matrix_mautrix_facebook_container_image_self_build }}" }
- { path: "{{ matrix_mautrix_facebook_base_path }}", when: true }
- { path: "{{ matrix_mautrix_facebook_config_path }}", when: true }
- { path: "{{ matrix_mautrix_facebook_data_path }}", when: true }
- { path: "{{ matrix_mautrix_facebook_docker_src_files_path }}", when: "{{ matrix_mautrix_facebook_container_image_self_build }}" }
when: item.when|bool
- name: Ensure Mautrix Facebook repository is present on self-build
git: