在ansible中,我需要检查文件中是否存在特定行.基本上,我需要将以下命令转换为ansible任务.我的目标是只检查.
grep -Fxq "127.0.0.1" /tmp/my.conf
ansible
ansible ×1