2023-12-06 12:32:15 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "install packages",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.apt": {
|
2024-03-20 00:06:32 +01:00
|
|
|
"update_cache": true,
|
2023-12-06 12:32:15 +01:00
|
|
|
"pkg": [
|
|
|
|
"proftpd-core"
|
|
|
|
]
|
|
|
|
}
|
2024-04-20 17:08:39 +02:00
|
|
|
},
|
|
|
|
{
|
2024-06-01 17:56:28 +02:00
|
|
|
"name": "ufw | check",
|
2024-04-20 17:08:39 +02:00
|
|
|
"check_mode": true,
|
2024-06-01 17:56:28 +02:00
|
|
|
"become": true,
|
2024-04-20 17:08:39 +02:00
|
|
|
"community.general.ufw": {
|
2024-06-01 17:56:28 +02:00
|
|
|
"state": "enabled"
|
|
|
|
},
|
|
|
|
"register": "ufw_enable_check"
|
2024-04-20 17:08:39 +02:00
|
|
|
},
|
|
|
|
{
|
2024-06-01 17:56:28 +02:00
|
|
|
"name": "ufw | allow port 20",
|
|
|
|
"when": "not ufw_enable_check.changed",
|
|
|
|
"become": true,
|
2024-04-20 17:08:39 +02:00
|
|
|
"community.general.ufw": {
|
|
|
|
"rule": "allow",
|
|
|
|
"port": "20",
|
|
|
|
"proto": "tcp"
|
2024-06-01 17:56:28 +02:00
|
|
|
}
|
2024-04-20 17:08:39 +02:00
|
|
|
},
|
|
|
|
{
|
2024-06-01 17:56:28 +02:00
|
|
|
"name": "ufw | allow port 21",
|
|
|
|
"when": "not ufw_enable_check.changed",
|
|
|
|
"become": true,
|
2024-04-20 17:08:39 +02:00
|
|
|
"community.general.ufw": {
|
|
|
|
"rule": "allow",
|
|
|
|
"port": "21",
|
|
|
|
"proto": "tcp"
|
2024-06-01 17:56:28 +02:00
|
|
|
}
|
2023-12-06 12:32:15 +01:00
|
|
|
}
|
|
|
|
]
|