ansible-base/roles/synapse-with-pav_jsonfile/tasks/main.json

44 lines
1 KiB
JSON
Raw Permalink Normal View History

2023-11-22 15:35:37 +01:00
[
{
"name": "put module",
"become": true,
"ansible.builtin.copy": {
"src": "module.py",
2023-11-22 15:50:38 +01:00
"dest": "{{var_synapse_with_pav_jsonfile_module_directory}}/{{var_synapse_with_pav_jsonfile_module_name}}.py"
2023-11-22 15:35:37 +01:00
}
},
{
"name": "emplace conf",
"become": true,
"ansible.builtin.template": {
"src": "conf.yaml.j2",
"dest": "{{var_synapse_with_pav_jsonfile_conf_path}}"
}
},
{
"name": "place user data file | fallback",
"become": true,
2023-11-22 15:50:38 +01:00
"ansible.builtin.copy": {
2023-11-22 15:35:37 +01:00
"src": "data-empty.json",
"dest": "{{var_synapse_with_pav_jsonfile_data_path_remote}}"
}
},
{
"name": "place user data file | actual",
"when": "var_synapse_with_pav_jsonfile_data_path_local != None",
"become": true,
"ansible.builtin.copy": {
"src": "{{var_synapse_with_pav_jsonfile_data_path_local}}",
"dest": "{{var_synapse_with_pav_jsonfile_data_path_remote}}"
}
},
{
"name": "restart synapse",
"become": true,
"ansible.builtin.systemd_service": {
"state": "restarted",
"name": "matrix-synapse"
}
}
]