--- - name: Update cache apt: update_cache: true become: true - name: Install packages apt: name: "{{ item }}" state: present loop: - powertop - hdparm become: true