ansible-base/roles/proftpd/tasks/main.json

42 lines
687 B
JSON
Raw Normal View History

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-06-01 17:56:28 +02:00
"name": "ufw | check",
"check_mode": true,
2024-06-01 17:56:28 +02:00
"become": true,
"community.general.ufw": {
2024-06-01 17:56:28 +02:00
"state": "enabled"
},
"register": "ufw_enable_check"
},
{
2024-06-01 17:56:28 +02:00
"name": "ufw | allow port 20",
"when": "not ufw_enable_check.changed",
"become": true,
"community.general.ufw": {
"rule": "allow",
"port": "20",
"proto": "tcp"
2024-06-01 17:56:28 +02:00
}
},
{
2024-06-01 17:56:28 +02:00
"name": "ufw | allow port 21",
"when": "not ufw_enable_check.changed",
"become": true,
"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
}
]