[ { "name": "install packages", "become": true, "ansible.builtin.apt": { "update_cache": true, "pkg": [ "proftpd-core" ] } }, { "name": "ufw | check", "check_mode": true, "become": true, "community.general.ufw": { "state": "enabled" }, "register": "ufw_enable_check" }, { "name": "ufw | allow port 20", "when": "not ufw_enable_check.changed", "become": true, "community.general.ufw": { "rule": "allow", "port": "20", "proto": "tcp" } }, { "name": "ufw | allow port 21", "when": "not ufw_enable_check.changed", "become": true, "community.general.ufw": { "rule": "allow", "port": "21", "proto": "tcp" } } ]