Ensure matrix_appservice_irc_docker_src_files_path created when self-building

The git module will create it anyway, but that would likely use `root:root`.
development
Slavi Pantaleev 4 years ago committed by GitHub
parent f10e3fef0d
commit 3051655d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,15 +2,17 @@
- name: Ensure Appservice IRC paths exist - name: Ensure Appservice IRC paths exist
file: file:
path: "{{ item }}" path: "{{ item.path }}"
state: directory state: directory
mode: 0750 mode: 0750
owner: "{{ matrix_user_username }}" owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}" group: "{{ matrix_user_groupname }}"
with_items: with_items:
- "{{ matrix_appservice_irc_base_path }}" - { path: "{{ matrix_appservice_irc_base_path }}", when: true }
- "{{ matrix_appservice_irc_config_path }}" - { path: "{{ matrix_appservice_irc_config_path }}", when: true }
- "{{ matrix_appservice_irc_data_path }}" - { path: "{{ matrix_appservice_irc_data_path }}", when: true }
- { path: "{{ matrix_appservice_irc_docker_src_files_path }}", when: "{{ matrix_appservice_irc_container_self_build }}" }
when: item.when|bool
- name: Check if an old passkey file already exists - name: Check if an old passkey file already exists
stat: stat:

Loading…
Cancel
Save