--- - name: Create Synapse user user: name: synapse when: '"synapse" in group_names' - name: Create Synapse directories file: path: "{{ item }}" owner: synapse group: synapse state: directory mode: "u=rwX,g=,o=" with_items: - "{{ dataroot }}/synapse/data" - "{{ dataroot }}/synapse/media_store" - name: Ensure that form secret exists fail: msg: Missing form_secret; have you configured vault.yml? when: form_secret == "" - name: Ensure that macaroon secret exists fail: msg: Missing macaroon_secret; have you configured vault.yml? when: form_secret == "" - name: Ensure that registration secret exists fail: msg: Missing registration_secret; have you configured vault.yml? when: registration_shared_secret == "" - name: Deploy Synapse config template: src: homeserver.yaml.j2 dest: "{{ dataroot }}/synapse/data/homeserver.yaml" owner: synapse group: synapse lstrip_blocks: yes - name: Deploy Synapse logging config template: src: log.config.j2 dest: "{{ dataroot }}/synapse/data/log.config" owner: synapse group: synapse lstrip_blocks: yes