2023-11-20 02:07:08 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "install packages",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.apt": {
|
2024-03-20 00:05:11 +01:00
|
|
|
"update_cache": true,
|
2023-11-20 02:07:08 +01:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|