--- - name: Update apt cache ansible.builtin.apt: update_cache: true - name: Install proftpd package ansible.builtin.apt: name: proftpd state: present - name: Ensure proftpd is enabled and started ansible.builtin.service: name: proftpd state: started enabled: true become: true - name: Allow FTP through UFW firewall (if UFW is enabled) community.general.ufw: rule: allow port: 21 proto: tcp ignore_errors: false