fix: avoid yaml being wrapped at column 80 via to_nice_yaml
The `to_nice_yaml` helper will by default wrap any string YAML values on the first space after column 80. This can in worst case yield invalid YAML syntax. More details in Ansible's documentation here: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#formatting-data-yaml-and-json In short, you need to explicitly provide a custom width argument of a high number of some kind to avoid the line wrapping.
This commit is contained in:
@ -84,7 +84,7 @@
|
||||
|
||||
- name: Ensure Synapse homeserver config installed
|
||||
copy:
|
||||
content: "{{ matrix_synapse_configuration|to_nice_yaml }}"
|
||||
content: "{{ matrix_synapse_configuration|to_nice_yaml(indent=2, width=999999) }}"
|
||||
dest: "{{ matrix_synapse_config_dir_path }}/homeserver.yaml"
|
||||
mode: 0644
|
||||
owner: "{{ matrix_user_username }}"
|
||||
|
Reference in New Issue
Block a user