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

39 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:17:40 +02:00
"name": "check whether enabling UFW would be considered a change",
"check_mode": true,
"community.general.ufw": {
2024-06-01 17:17:40 +02:00
"state": "enabled"
},
"register": "ufw_enable_check"
},
{
2024-06-01 17:17:40 +02:00
"name": "allow FTP port 20 in ufw",
"when": "not ufw_enable_check.changed",
"community.general.ufw": {
"rule": "allow",
"port": "20",
"proto": "tcp"
2024-06-01 17:17:40 +02:00
}
},
{
2024-06-01 17:17:40 +02:00
"name": "allow FTP port 21 in ufw",
"when": "not ufw_enable_check.changed",
"community.general.ufw": {
"rule": "allow",
"port": "21",
"proto": "tcp"
2024-06-01 17:17:40 +02:00
}
2023-12-06 12:32:15 +01:00
}
]