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