--- - name: Install favorite tools (vim, telnet, curl) hosts: all become: yes tasks: - name: Ensure vim, telnet, and curl are installed ansible.builtin.apt: name: - vim - telnet - curl state: present update_cache: yes register: install_tools_result - name: Show install result (full) ansible.builtin.debug: var: install_tools_result