diff --git a/hosts.yml b/hosts.yml index e9d66be..5c9c473 100644 --- a/hosts.yml +++ b/hosts.yml @@ -92,7 +92,7 @@ ocinode: oci-node02.home.foo.sh: vars: grafana_version: "11.3.1" - rocketchat_version: "7.1.0" + rocketchat_version: "7.3.0" roundcube_version: "1.6.9" print: hosts: diff --git a/roles/rocketchat/tasks/main.yml b/roles/rocketchat/tasks/main.yml index 07fd33a..da102d0 100644 --- a/roles/rocketchat/tasks/main.yml +++ b/roles/rocketchat/tasks/main.yml @@ -28,13 +28,23 @@ check_mode: false register: rocketchat_cert_key +- name: Get rocketchat subgid value + ansible.builtin.command: + argv: + - sed + - -n + - 's/^rocketchat:\([0-9]\+\):[0-9]\+$/\1/p' + - /etc/subuid + changed_when: false + register: result + - name: Create combined certificate/private key file ansible.builtin.copy: dest: "{{ tls_private }}/rocketchat.pem" content: "{{ rocketchat_cert_key.stdout }}" mode: "0640" owner: root - group: rocketchat + group: "{{ result.stdout | int + 65532 }}" notify: Restart rocketchat - name: Create service config