Signed-off-by: Suguru Hirahara <did🔑z6MkvVZk1A3KBApWJXv2Ju4H14ErDfRGxh8zxdXSZ4vACDg5>
pull/4750/head
| @@ -11,14 +11,11 @@ | |||||
| matrixto_enabled: true | matrixto_enabled: true | ||||
| matrixto_identifier: matrixto | |||||
| matrixto_identifier: matrix-matrixto | |||||
| matrixto_base_path: "/{{ matrixto_identifier }}" | matrixto_base_path: "/{{ matrixto_identifier }}" | ||||
| matrixto_version: 1.2.17-1 | matrixto_version: 1.2.17-1 | ||||
| matrixto_uid: "" | |||||
| matrixto_gid: "" | |||||
| matrixto_scheme: https | matrixto_scheme: https | ||||
| # The hostname at which Matrix.to is served. | # The hostname at which Matrix.to is served. | ||||
| @@ -9,8 +9,8 @@ | |||||
| path: "{{ item }}" | path: "{{ item }}" | ||||
| state: directory | state: directory | ||||
| mode: "0750" | mode: "0750" | ||||
| owner: "{{ matrixto_uid }}" | |||||
| group: "{{ matrixto_gid }}" | |||||
| owner: "{{ matrix_user_name }}" | |||||
| group: "{{ matrix_group_name }}" | |||||
| with_items: | with_items: | ||||
| - "{{ matrixto_base_path }}" | - "{{ matrixto_base_path }}" | ||||
| @@ -19,8 +19,8 @@ | |||||
| src: "{{ role_path }}/templates/{{ item }}.j2" | src: "{{ role_path }}/templates/{{ item }}.j2" | ||||
| dest: "{{ matrixto_base_path }}/{{ item }}" | dest: "{{ matrixto_base_path }}/{{ item }}" | ||||
| mode: "0640" | mode: "0640" | ||||
| owner: "{{ matrixto_uid }}" | |||||
| group: "{{ matrixto_gid }}" | |||||
| owner: "{{ matrix_user_name }}" | |||||
| group: "{{ matrix_group_name }}" | |||||
| with_items: | with_items: | ||||
| - env | - env | ||||
| - labels | - labels | ||||
| @@ -95,6 +95,6 @@ | |||||
| - name: Ensure Matrix.to systemd service is present | - name: Ensure Matrix.to systemd service is present | ||||
| ansible.builtin.template: | ansible.builtin.template: | ||||
| src: "{{ role_path }}/templates/systemd/matrixto.service.j2" | |||||
| src: "{{ role_path }}/templates/systemd/matrix-matrixto.service.j2" | |||||
| dest: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrixto_identifier }}.service" | dest: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrixto_identifier }}.service" | ||||
| mode: "0644" | mode: "0644" | ||||
| @@ -10,8 +10,6 @@ | |||||
| You need to define a required configuration setting (`{{ item }}`). | You need to define a required configuration setting (`{{ item }}`). | ||||
| when: "lookup('vars', item, default='') | string | length == 0" | when: "lookup('vars', item, default='') | string | length == 0" | ||||
| with_items: | with_items: | ||||
| - matrixto_uid | |||||
| - matrixto_gid | |||||
| - matrixto_hostname | - matrixto_hostname | ||||
| - matrixto_path_prefix | - matrixto_path_prefix | ||||
| - matrixto_container_network | - matrixto_container_network | ||||
| @@ -27,7 +27,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --rm \ | --rm \ | ||||
| --name={{ matrixto_identifier }} \ | --name={{ matrixto_identifier }} \ | ||||
| --log-driver=none \ | --log-driver=none \ | ||||
| --user={{ matrixto_uid }}:{{ matrixto_gid }} \ | |||||
| --user={{ matrix_user_uid }}:{{ matrix_user_gid }} \ | |||||
| --cap-drop=ALL \ | --cap-drop=ALL \ | ||||
| --read-only \ | --read-only \ | ||||
| --network={{ matrixto_container_network }} \ | --network={{ matrixto_container_network }} \ | ||||