43 lines
1 KiB
JSON
43 lines
1 KiB
JSON
[
|
|
{
|
|
"name": "put module",
|
|
"become": true,
|
|
"ansible.builtin.copy": {
|
|
"src": "module.py",
|
|
"dest": "{{var_synapse_with_pav_jsonfile_module_directory}}/{{var_synapse_with_pav_jsonfile_module_name}}.py"
|
|
}
|
|
},
|
|
{
|
|
"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,
|
|
"ansible.builtin.copy": {
|
|
"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"
|
|
}
|
|
}
|
|
]
|