--- - name: Prepare hosts: all tasks: - name: Install sudo ansible.builtin.yum: name: sudo state: present