--- # This playbook installs ufw, allows the OpenSSH profile, then starts the # service. - name: install ufw ansible.builtin.apt: name: ufw state: present - name: enable OpenSSH ufw profile community.general.ufw: rule: allow name: OpenSSH - name: enable ufw community.general.ufw: state: enabled