Allow the matrix user username and groupname to be configured separately
No migration steps should be required.
This commit is contained in:
parent
cf0e56e92b
commit
7585bcc4ac
|
@ -22,6 +22,7 @@ matrix_server_fqn_dimension: "dimension.{{ matrix_domain }}"
|
||||||
matrix_server_fqn_jitsi: "jitsi.{{ matrix_domain }}"
|
matrix_server_fqn_jitsi: "jitsi.{{ matrix_domain }}"
|
||||||
|
|
||||||
matrix_user_username: "matrix"
|
matrix_user_username: "matrix"
|
||||||
|
matrix_user_groupname: "matrix"
|
||||||
matrix_user_uid: 991
|
matrix_user_uid: 991
|
||||||
matrix_user_gid: 991
|
matrix_user_gid: 991
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
- name: Ensure Matrix group is created
|
- name: Ensure Matrix group is created
|
||||||
group:
|
group:
|
||||||
name: "{{ matrix_user_username }}"
|
name: "{{ matrix_user_groupname }}"
|
||||||
gid: "{{ matrix_user_gid }}"
|
gid: "{{ matrix_user_gid }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
name: "{{ matrix_user_username }}"
|
name: "{{ matrix_user_username }}"
|
||||||
uid: "{{ matrix_user_uid }}"
|
uid: "{{ matrix_user_uid }}"
|
||||||
state: present
|
state: present
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure Matrix base path exists
|
- name: Ensure Matrix base path exists
|
||||||
file:
|
file:
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: "{{ matrix_base_data_path_mode }}"
|
mode: "{{ matrix_base_data_path_mode }}"
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_base_data_path }}"
|
- "{{ matrix_base_data_path }}"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
- "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/client"
|
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/client"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure Matrix /.well-known/matrix/server file configured
|
- name: Ensure Matrix /.well-known/matrix/server file configured
|
||||||
template:
|
template:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
|
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_well_known_matrix_server_enabled|bool
|
when: matrix_well_known_matrix_server_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Matrix /.well-known/matrix/server file deleted
|
- name: Ensure Matrix /.well-known/matrix/server file deleted
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_appservice_discord_base_path }}"
|
- "{{ matrix_appservice_discord_base_path }}"
|
||||||
- "{{ matrix_appservice_discord_config_path }}"
|
- "{{ matrix_appservice_discord_config_path }}"
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
dest: "{{ matrix_appservice_discord_config_path }}/config.yaml"
|
dest: "{{ matrix_appservice_discord_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure AppService Discord registration.yaml installed
|
- name: Ensure AppService Discord registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
dest: "{{ matrix_appservice_discord_config_path }}/registration.yaml"
|
dest: "{{ matrix_appservice_discord_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
# If `matrix_appservice_discord_client_id` hasn't changed, the same invite link would be generated.
|
# If `matrix_appservice_discord_client_id` hasn't changed, the same invite link would be generated.
|
||||||
# We intentionally suppress Ansible changes.
|
# We intentionally suppress Ansible changes.
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_appservice_irc_base_path }}"
|
- "{{ matrix_appservice_irc_base_path }}"
|
||||||
- "{{ matrix_appservice_irc_config_path }}"
|
- "{{ matrix_appservice_irc_config_path }}"
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
dest: "{{ matrix_appservice_irc_config_path }}/config.yaml"
|
dest: "{{ matrix_appservice_irc_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Check if Appservice IRC passkey exists
|
- name: Check if Appservice IRC passkey exists
|
||||||
stat:
|
stat:
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
path: "{{ matrix_appservice_irc_data_path }}/passkey.pem"
|
path: "{{ matrix_appservice_irc_data_path }}/passkey.pem"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
# Ideally, we'd like to generate the final registration.yaml file by ourselves.
|
# Ideally, we'd like to generate the final registration.yaml file by ourselves.
|
||||||
#
|
#
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
dest: "{{ matrix_appservice_irc_config_path }}/registration.yaml"
|
dest: "{{ matrix_appservice_irc_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-appservice-irc.service installed
|
- name: Ensure matrix-appservice-irc.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_appservice_slack_base_path }}"
|
- "{{ matrix_appservice_slack_base_path }}"
|
||||||
- "{{ matrix_appservice_slack_config_path }}"
|
- "{{ matrix_appservice_slack_config_path }}"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
dest: "{{ matrix_appservice_slack_config_path }}/config.yaml"
|
dest: "{{ matrix_appservice_slack_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure appservice-slack registration.yaml installed
|
- name: Ensure appservice-slack registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
dest: "{{ matrix_appservice_slack_config_path }}/slack-registration.yaml"
|
dest: "{{ matrix_appservice_slack_config_path }}/slack-registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-appservice-slack.service installed
|
- name: Ensure matrix-appservice-slack.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_appservice_webhooks_base_path }}"
|
- "{{ matrix_appservice_webhooks_base_path }}"
|
||||||
- "{{ matrix_appservice_webhooks_config_path }}"
|
- "{{ matrix_appservice_webhooks_config_path }}"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
dest: "{{ matrix_appservice_webhooks_config_path }}/config.yaml"
|
dest: "{{ matrix_appservice_webhooks_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure Matrix Appservice webhooks schema.yml template exists
|
- name: Ensure Matrix Appservice webhooks schema.yml template exists
|
||||||
template:
|
template:
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
dest: "{{ matrix_appservice_webhooks_config_path }}/schema.yml"
|
dest: "{{ matrix_appservice_webhooks_config_path }}/schema.yml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure Matrix Appservice webhooks database.json template exists
|
- name: Ensure Matrix Appservice webhooks database.json template exists
|
||||||
template:
|
template:
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
dest: "{{ matrix_appservice_webhooks_data_path }}/database.json"
|
dest: "{{ matrix_appservice_webhooks_data_path }}/database.json"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure appservice-webhooks registration.yaml installed
|
- name: Ensure appservice-webhooks registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
dest: "{{ matrix_appservice_webhooks_config_path }}/webhooks-registration.yaml"
|
dest: "{{ matrix_appservice_webhooks_config_path }}/webhooks-registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-appservice-webhooks.service installed
|
- name: Ensure matrix-appservice-webhooks.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_mautrix_facebook_base_path }}", when: true }
|
- { path: "{{ matrix_mautrix_facebook_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_mautrix_facebook_config_path }}", when: true }
|
- { path: "{{ matrix_mautrix_facebook_config_path }}", when: true }
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
dest: "{{ matrix_mautrix_facebook_config_path }}/config.yaml"
|
dest: "{{ matrix_mautrix_facebook_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mautrix-facebook registration.yaml installed
|
- name: Ensure mautrix-facebook registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
dest: "{{ matrix_mautrix_facebook_config_path }}/registration.yaml"
|
dest: "{{ matrix_mautrix_facebook_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-facebook.service installed
|
- name: Ensure matrix-mautrix-facebook.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_mautrix_hangouts_base_path }}", when: true }
|
- { path: "{{ matrix_mautrix_hangouts_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_mautrix_hangouts_config_path }}", when: true }
|
- { path: "{{ matrix_mautrix_hangouts_config_path }}", when: true }
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
dest: "{{ matrix_mautrix_hangouts_config_path }}/config.yaml"
|
dest: "{{ matrix_mautrix_hangouts_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mautrix-hangouts registration.yaml installed
|
- name: Ensure mautrix-hangouts registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
dest: "{{ matrix_mautrix_hangouts_config_path }}/registration.yaml"
|
dest: "{{ matrix_mautrix_hangouts_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-hangouts.service installed
|
- name: Ensure matrix-mautrix-hangouts.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_mautrix_telegram_base_path }}"
|
- "{{ matrix_mautrix_telegram_base_path }}"
|
||||||
- "{{ matrix_mautrix_telegram_config_path }}"
|
- "{{ matrix_mautrix_telegram_config_path }}"
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
dest: "{{ matrix_mautrix_telegram_config_path }}/config.yaml"
|
dest: "{{ matrix_mautrix_telegram_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mautrix-telegram registration.yaml installed
|
- name: Ensure mautrix-telegram registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
dest: "{{ matrix_mautrix_telegram_config_path }}/registration.yaml"
|
dest: "{{ matrix_mautrix_telegram_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-telegram.service installed
|
- name: Ensure matrix-mautrix-telegram.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_mautrix_whatsapp_base_path }}"
|
- "{{ matrix_mautrix_whatsapp_base_path }}"
|
||||||
- "{{ matrix_mautrix_whatsapp_config_path }}"
|
- "{{ matrix_mautrix_whatsapp_config_path }}"
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
dest: "{{ matrix_mautrix_whatsapp_config_path }}/config.yaml"
|
dest: "{{ matrix_mautrix_whatsapp_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mautrix-whatsapp registration.yaml installed
|
- name: Ensure mautrix-whatsapp registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
dest: "{{ matrix_mautrix_whatsapp_config_path }}/registration.yaml"
|
dest: "{{ matrix_mautrix_whatsapp_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mautrix-whatsapp.service installed
|
- name: Ensure matrix-mautrix-whatsapp.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_mx_puppet_skype_base_path }}", when: true }
|
- { path: "{{ matrix_mx_puppet_skype_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_mx_puppet_skype_config_path }}", when: true }
|
- { path: "{{ matrix_mx_puppet_skype_config_path }}", when: true }
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
dest: "{{ matrix_mx_puppet_skype_config_path }}/config.yaml"
|
dest: "{{ matrix_mx_puppet_skype_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-skype skype-registration.yaml installed
|
- name: Ensure mx-puppet-skype skype-registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
dest: "{{ matrix_mx_puppet_skype_config_path }}/registration.yaml"
|
dest: "{{ matrix_mx_puppet_skype_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mx-puppet-skype.service installed
|
- name: Ensure matrix-mx-puppet-skype.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_mx_puppet_slack_base_path }}", when: true }
|
- { path: "{{ matrix_mx_puppet_slack_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_mx_puppet_slack_config_path }}", when: true }
|
- { path: "{{ matrix_mx_puppet_slack_config_path }}", when: true }
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
dest: "{{ matrix_mx_puppet_slack_config_path }}/config.yaml"
|
dest: "{{ matrix_mx_puppet_slack_config_path }}/config.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure mx-puppet-slack slack-registration.yaml installed
|
- name: Ensure mx-puppet-slack slack-registration.yaml installed
|
||||||
copy:
|
copy:
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
dest: "{{ matrix_mx_puppet_slack_config_path }}/registration.yaml"
|
dest: "{{ matrix_mx_puppet_slack_config_path }}/registration.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-mx-puppet-slack.service installed
|
- name: Ensure matrix-mx-puppet-slack.service installed
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_corporal_config_dir_path }}"
|
- "{{ matrix_corporal_config_dir_path }}"
|
||||||
- "{{ matrix_corporal_cache_dir_path }}"
|
- "{{ matrix_corporal_cache_dir_path }}"
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
dest: "{{ matrix_corporal_config_dir_path }}/config.json"
|
dest: "{{ matrix_corporal_config_dir_path }}/config.json"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_corporal_enabled|bool
|
when: matrix_corporal_enabled|bool
|
||||||
|
|
||||||
- name: Ensure matrix-corporal.service installed
|
- name: Ensure matrix-corporal.service installed
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_coturn_docker_src_files_path }}", when: "{{ matrix_coturn_container_image_self_build }}"}
|
- { path: "{{ matrix_coturn_docker_src_files_path }}", when: "{{ matrix_coturn_container_image_self_build }}"}
|
||||||
when: matrix_riot_web_enabled|bool and item.when
|
when: matrix_riot_web_enabled|bool and item.when
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_coturn_enabled|bool
|
when: matrix_coturn_enabled|bool
|
||||||
|
|
||||||
- name: Ensure turnserver.conf installed
|
- name: Ensure turnserver.conf installed
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0770
|
mode: 0770
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_dimension_enabled|bool
|
when: matrix_dimension_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Dimension config installed
|
- name: Ensure Dimension config installed
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
dest: "{{ matrix_dimension_base_path }}/config.yaml"
|
dest: "{{ matrix_dimension_base_path }}/config.yaml"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_dimension_enabled|bool
|
when: matrix_dimension_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Dimension image is pulled
|
- name: Ensure Dimension image is pulled
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_email2matrix_base_path }}"
|
- "{{ matrix_email2matrix_base_path }}"
|
||||||
- "{{ matrix_email2matrix_config_dir_path }}"
|
- "{{ matrix_email2matrix_config_dir_path }}"
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
src: "{{ role_path }}/templates/config.json.j2"
|
src: "{{ role_path }}/templates/config.json.j2"
|
||||||
dest: "{{ matrix_email2matrix_config_dir_path }}/config.json"
|
dest: "{{ matrix_email2matrix_config_dir_path }}/config.json"
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
mode: 0640
|
mode: 0640
|
||||||
when: matrix_email2matrix_enabled|bool
|
when: matrix_email2matrix_enabled|bool
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_jitsi_base_path }}", when: true }
|
- { path: "{{ matrix_jitsi_base_path }}", when: true }
|
||||||
when: matrix_jitsi_enabled|bool and item.when
|
when: matrix_jitsi_enabled|bool and item.when
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0777
|
mode: 0777
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_jitsi_jicofo_base_path }}", when: true }
|
- { path: "{{ matrix_jitsi_jicofo_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_jitsi_jicofo_config_path }}", when: true }
|
- { path: "{{ matrix_jitsi_jicofo_config_path }}", when: true }
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0777
|
mode: 0777
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_jitsi_jvb_base_path }}", when: true }
|
- { path: "{{ matrix_jitsi_jvb_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_jitsi_jvb_config_path }}", when: true }
|
- { path: "{{ matrix_jitsi_jvb_config_path }}", when: true }
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0777
|
mode: 0777
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_jitsi_prosody_base_path }}", when: true }
|
- { path: "{{ matrix_jitsi_prosody_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_jitsi_prosody_config_path }}", when: true }
|
- { path: "{{ matrix_jitsi_prosody_config_path }}", when: true }
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0777
|
mode: 0777
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_jitsi_web_base_path }}", when: true }
|
- { path: "{{ matrix_jitsi_web_base_path }}", when: true }
|
||||||
- { path: "{{ matrix_jitsi_web_config_path }}", when: true }
|
- { path: "{{ matrix_jitsi_web_config_path }}", when: true }
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_ma1sd_config_path }}", when: true }
|
- { path: "{{ matrix_ma1sd_config_path }}", when: true }
|
||||||
- { path: "{{ matrix_ma1sd_data_path }}", when: true }
|
- { path: "{{ matrix_ma1sd_data_path }}", when: true }
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
dest: "{{ matrix_ma1sd_config_path }}/ma1sd.yaml"
|
dest: "{{ matrix_ma1sd_config_path }}/ma1sd.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_ma1sd_enabled|bool
|
when: matrix_ma1sd_enabled|bool
|
||||||
|
|
||||||
- name: Ensure custom templates are installed if any
|
- name: Ensure custom templates are installed if any
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
dest: "{{ matrix_ma1sd_data_path }}/{{ item.location }}"
|
dest: "{{ matrix_ma1sd_data_path }}/{{ item.location }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- {value: "{{ matrix_ma1sd_threepid_medium_email_custom_invite_template }}", location: 'invite-template.eml'}
|
- {value: "{{ matrix_ma1sd_threepid_medium_email_custom_invite_template }}", location: 'invite-template.eml'}
|
||||||
- {value: "{{ matrix_ma1sd_threepid_medium_email_custom_session_validation_template }}", location: 'validate-template.eml'}
|
- {value: "{{ matrix_ma1sd_threepid_medium_email_custom_session_validation_template }}", location: 'validate-template.eml'}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_mailer_enabled|bool
|
when: matrix_mailer_enabled|bool
|
||||||
|
|
||||||
- name: Ensure mailer environment variables file created
|
- name: Ensure mailer environment variables file created
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_nginx_proxy_base_path }}"
|
- "{{ matrix_nginx_proxy_base_path }}"
|
||||||
- "{{ matrix_nginx_proxy_data_path }}"
|
- "{{ matrix_nginx_proxy_data_path }}"
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
src: "{{ role_path }}/templates/nginx/matrix-synapse-metrics-htpasswd.j2"
|
src: "{{ role_path }}/templates/nginx/matrix-synapse-metrics-htpasswd.j2"
|
||||||
dest: "{{ matrix_nginx_proxy_data_path }}/matrix-synapse-metrics-htpasswd"
|
dest: "{{ matrix_nginx_proxy_data_path }}/matrix-synapse-metrics-htpasswd"
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
mode: 0400
|
mode: 0400
|
||||||
when: "matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled|bool and matrix_nginx_proxy_proxy_synapse_metrics|bool"
|
when: "matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled|bool and matrix_nginx_proxy_proxy_synapse_metrics|bool"
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_nginx_proxy_base_domain_serving_enabled|bool
|
when: matrix_nginx_proxy_base_domain_serving_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Matrix nginx-proxy homepage for base domain exists
|
- name: Ensure Matrix nginx-proxy homepage for base domain exists
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
dest: "{{ matrix_nginx_proxy_data_path }}/matrix-domain/index.html"
|
dest: "{{ matrix_nginx_proxy_data_path }}/matrix-domain/index.html"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_nginx_proxy_base_domain_serving_enabled|bool and matrix_nginx_proxy_base_domain_homepage_enabled|bool
|
when: matrix_nginx_proxy_base_domain_serving_enabled|bool and matrix_nginx_proxy_base_domain_homepage_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Matrix nginx-proxy configuration for base domain exists
|
- name: Ensure Matrix nginx-proxy configuration for base domain exists
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
- "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
||||||
|
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
|
@ -14,7 +14,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0770
|
mode: 0770
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
recurse: true
|
recurse: true
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_ssl_log_dir_path }}"
|
- "{{ matrix_ssl_log_dir_path }}"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: "not matrix_ssl_certificate_cert_path_stat_result.stat.exists"
|
when: "not matrix_ssl_certificate_cert_path_stat_result.stat.exists"
|
||||||
|
|
||||||
# The proper way to do this is by using a sequence of
|
# The proper way to do this is by using a sequence of
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-postgres is started
|
- name: Ensure matrix-postgres is started
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: "result_pg_old_data_dir_stat.stat.exists"
|
when: "result_pg_old_data_dir_stat.stat.exists"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
force: true
|
force: true
|
||||||
mode: 0550
|
mode: 0550
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure matrix-postgres is started
|
- name: Ensure matrix-postgres is started
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ matrix_postgres_base_path }}"
|
- "{{ matrix_postgres_base_path }}"
|
||||||
- "{{ matrix_postgres_data_path }}"
|
- "{{ matrix_postgres_data_path }}"
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
path: "{{ matrix_postgres_data_path }}"
|
path: "{{ matrix_postgres_data_path }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
when: matrix_postgres_enabled|bool
|
when: matrix_postgres_enabled|bool
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_riot_web_data_path }}", when: true }
|
- { path: "{{ matrix_riot_web_data_path }}", when: true }
|
||||||
- { path: "{{ matrix_riot_web_docker_src_files_path }}", when: "{{ matrix_riot_web_container_image_self_build }}" }
|
- { path: "{{ matrix_riot_web_docker_src_files_path }}", when: "{{ matrix_riot_web_container_image_self_build }}" }
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
dest: "{{ matrix_riot_web_data_path }}/config.json"
|
dest: "{{ matrix_riot_web_data_path }}/config.json"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: matrix_riot_web_enabled|bool
|
when: matrix_riot_web_enabled|bool
|
||||||
|
|
||||||
- name: Ensure Matrix riot-web config files installed
|
- name: Ensure Matrix riot-web config files installed
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
dest: "{{ matrix_riot_web_data_path }}/{{ item.name }}"
|
dest: "{{ matrix_riot_web_data_path }}/{{ item.name }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- {src: "{{ role_path }}/templates/nginx.conf.j2", name: "nginx.conf"}
|
- {src: "{{ role_path }}/templates/nginx.conf.j2", name: "nginx.conf"}
|
||||||
- {src: "{{ role_path }}/templates/welcome.html.j2", name: "welcome.html"}
|
- {src: "{{ role_path }}/templates/welcome.html.j2", name: "welcome.html"}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
force: true
|
force: true
|
||||||
mode: 0440
|
mode: 0440
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_synapse_password_providers_enabled: true
|
matrix_synapse_password_providers_enabled: true
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
force: true
|
force: true
|
||||||
mode: 0440
|
mode: 0440
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
matrix_synapse_password_providers_enabled: true
|
matrix_synapse_password_providers_enabled: true
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: "not local_path_matrix_synapse_media_store_path_stat.failed and not local_path_matrix_synapse_media_store_path_stat.stat.exists"
|
when: "not local_path_matrix_synapse_media_store_path_stat.failed and not local_path_matrix_synapse_media_store_path_stat.stat.exists"
|
||||||
|
|
||||||
- name: Ensure goofys environment variables file created
|
- name: Ensure goofys environment variables file created
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
file:
|
file:
|
||||||
path: "{{ matrix_synapse_media_store_path }}"
|
path: "{{ matrix_synapse_media_store_path }}"
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
when: "not matrix_s3_media_store_enabled|bool"
|
when: "not matrix_s3_media_store_enabled|bool"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { path: "{{ matrix_synapse_config_dir_path }}", when: true }
|
- { path: "{{ matrix_synapse_config_dir_path }}", when: true }
|
||||||
- { path: "{{ matrix_synapse_run_path }}", when: true }
|
- { path: "{{ matrix_synapse_run_path }}", when: true }
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0750
|
mode: 0750
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
when: "not local_path_media_store_stat.failed and not local_path_media_store_stat.stat.exists"
|
when: "not local_path_media_store_stat.failed and not local_path_media_store_stat.stat.exists"
|
||||||
|
|
||||||
- name: Ensure Synapse repository is present on self-build
|
- name: Ensure Synapse repository is present on self-build
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
dest: "{{ matrix_synapse_config_dir_path }}/homeserver.yaml"
|
dest: "{{ matrix_synapse_config_dir_path }}/homeserver.yaml"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: "{{ matrix_user_username }}"
|
owner: "{{ matrix_user_username }}"
|
||||||
group: "{{ matrix_user_username }}"
|
group: "{{ matrix_user_groupname }}"
|
||||||
|
|
||||||
- name: Ensure Synapse log config installed
|
- name: Ensure Synapse log config installed
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue