Introduce a separate group variable (matrix_user_groupname)
Related to #485 (Github Pull Request).
This commit is contained in:
roles
matrix-base
matrix-bridge-appservice-discord
tasks
matrix-bridge-appservice-irc
tasks
matrix-bridge-appservice-slack
tasks
matrix-bridge-appservice-webhooks
tasks
matrix-bridge-mautrix-facebook
tasks
matrix-bridge-mautrix-hangouts
tasks
matrix-bridge-mautrix-telegram
tasks
matrix-bridge-mautrix-whatsapp
tasks
matrix-bridge-mx-puppet-skype
tasks
matrix-bridge-mx-puppet-slack
tasks
matrix-corporal
tasks
matrix-coturn
tasks
matrix-dimension
tasks
matrix-email2matrix
matrix-jitsi
tasks
matrix-ma1sd
tasks
matrix-mailer
tasks
matrix-nginx-proxy
tasks
matrix-postgres
tasks
matrix-riot-web
tasks
matrix-synapse
tasks
@@ -22,6 +22,7 @@ matrix_server_fqn_dimension: "dimension.{{ matrix_domain }}"
|
||||
matrix_server_fqn_jitsi: "jitsi.{{ matrix_domain }}"
|
||||
|
||||
matrix_user_username: "matrix"
|
||||
matrix_user_groupname: "matrix"
|
||||
|
||||
matrix_base_data_path: "/matrix"
|
||||
matrix_base_data_path_mode: "750"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
state: directory
|
||||
mode: "{{ matrix_base_data_path_mode }}"
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
with_items:
|
||||
- "{{ matrix_base_data_path }}"
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
- name: Ensure Matrix group is created
|
||||
group:
|
||||
name: "{{ matrix_user_username }}"
|
||||
name: "{{ matrix_user_groupname }}"
|
||||
state: present
|
||||
register: matrix_group
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
user:
|
||||
name: "{{ matrix_user_username }}"
|
||||
state: present
|
||||
group: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
register: matrix_user
|
||||
|
||||
- name: Set Matrix Group UID Variable
|
||||
|
@@ -8,7 +8,7 @@
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
with_items:
|
||||
- "{{ matrix_static_files_base_path }}/.well-known/matrix"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/client"
|
||||
mode: 0644
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
|
||||
- name: Ensure Matrix /.well-known/matrix/server file configured
|
||||
template:
|
||||
@@ -26,7 +26,7 @@
|
||||
dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
|
||||
mode: 0644
|
||||
owner: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_username }}"
|
||||
group: "{{ matrix_user_groupname }}"
|
||||
when: matrix_well_known_matrix_server_enabled|bool
|
||||
|
||||
- name: Ensure Matrix /.well-known/matrix/server file deleted
|
||||
|
Reference in New Issue
Block a user