--- - name: Install ufw become: true ansible.builtin.package: name: "{{ ufw_package_name }}" state: present register: __ufw_install # ansible_check_mode is not used: the play-level `check_mode: true` keyword does not set it inside # include_role tasks. A command task is skipped in both forms, the same probe as tasks/sysctl.yml. - name: Probe whether the run is in check mode ansible.builtin.command: "true" register: __ufw_install_probe changed_when: false