I have a query regarding how to print difference between an ansible output and customer expected value.

As per my role [root@ansible-master tasks]# cat main.yml

— # tasks file for Security_Info_Tab8 - shell: grep -v ^# /etc/xinetd.d/telnet | grep -i disable register: telnet_setting changed_when: false - assert: that: - lookup(‘file’, ‘customer-expects.txt’) == telnet_setting.stdout fail_msg: missed success_msg: matched

If I am reading this correctly the text file is just “root”. This will never match the telnet.setting, as is it will be either “disable no” or “disable yes”. Is this the intended comparision?