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

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