39 lines
736 B
JSON
39 lines
736 B
JSON
![]() |
[
|
||
|
{
|
||
|
"name": "install packages",
|
||
|
"become": true,
|
||
|
"ansible.builtin.apt": {
|
||
|
"pkg": [
|
||
|
"lighttpd",
|
||
|
"lighttpd-mod-openssl"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "activate openssl module | file",
|
||
|
"become": true,
|
||
|
"ansible.builtin.template": {
|
||
|
"src": "10-ssl-custom.conf.j2",
|
||
|
"dest": "/etc/lighttpd/conf-available/10-ssl-custom.conf"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "activate openssl module | link",
|
||
|
"become": true,
|
||
|
"ansible.builtin.file": {
|
||
|
"state": "link",
|
||
|
"src": "/etc/lighttpd/conf-available/10-ssl-custom.conf",
|
||
|
"dest": "/etc/lighttpd/conf-enabled/10-ssl-custom.conf"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "restart service",
|
||
|
"become": true,
|
||
|
"ansible.builtin.systemd_service": {
|
||
|
"state": "restarted",
|
||
|
"name": "lighttpd"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
|