set check_mode: no allow tasks to run even on check mode this prevent set_fact tasks from failure.
TASK [linux-system-roles.tuned : set_fact] **
fatal: [servera]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to be in '/home/student/.ansible/roles/linux-system-roles.tuned/tasks/main.yaml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- set_fact:\n ^ here\n"}
set
check_mode: no
allow tasks to run even on check mode this preventset_fact
tasks from failure.TASK [linux-system-roles.tuned : set_fact] ** fatal: [servera]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to be in '/home/student/.ansible/roles/linux-system-roles.tuned/tasks/main.yaml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- set_fact:\n ^ here\n"}