--- - hosts: all tasks: - name: temporarily set performance cpu govenor become: yes command: bash -c "echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor"