35 lines
782 B
JSON
35 lines
782 B
JSON
![]() |
[
|
||
|
{
|
||
|
"name": "activate proxy module",
|
||
|
"become": true,
|
||
|
"ansible.builtin.shell": {
|
||
|
"cmd": "lighttpd-enable-mod proxy || exit 0"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "emplace configuration | data",
|
||
|
"become": true,
|
||
|
"ansible.builtin.template": {
|
||
|
"src": "conf.j2",
|
||
|
"dest": "/etc/lighttpd/conf-available/{{var_hedgedoc_and_lighttpd_domain}}.conf"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "emplace configuration | link",
|
||
|
"become": true,
|
||
|
"ansible.builtin.file": {
|
||
|
"state": "link",
|
||
|
"src": "/etc/lighttpd/conf-available/{{var_hedgedoc_and_lighttpd_domain}}.conf",
|
||
|
"dest": "/etc/lighttpd/conf-enabled/{{var_hedgedoc_and_lighttpd_domain}}.conf"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "restart lighttpd",
|
||
|
"become": true,
|
||
|
"ansible.builtin.systemd_service": {
|
||
|
"state": "restarted",
|
||
|
"name": "lighttpd"
|
||
|
}
|
||
|
}
|
||
|
]
|