45 lines
977 B
JSON
45 lines
977 B
JSON
![]() |
[
|
||
|
{
|
||
|
"name": "put module",
|
||
|
"become": true,
|
||
|
"ansible.builtin.copy": {
|
||
|
"src": "module.py",
|
||
|
"dest": "{{var_synapse_with_pav_jsonfile_module_path}}"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"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.file": {
|
||
|
"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"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
]
|