--- - name: Install tuned ansible.builtin.apt: name: "{{ item }}" state: present update_cache: true loop: - tuned - tuned-utils - name: Put config files ansible.builtin.copy: src: "files/{{ item }}" dest: "/etc/tuned/{{ item }}" owner: root group: root mode: "0o644" loop: - active_profile - profile_mode notify: Restart tuned - name: Ensure tuned is started ansible.builtin.service: name: tuned state: started