Ansible: Use of Diff command using Ansible
问题 I am trying to one simple task which is find out the difference between the two files and store it in notepad. I am not able to do it with command as well as shell. Please suggest where i am going wrong- --- - hosts: myserver tasks: - name: get the difference command: diff hosts.new hosts.mod register: diff - debug: var=diff.cmd Error - fatal: [zlp12037]: FAILED! => {"changed": true, "cmd": ["diff", "hosts.new", "hosts.mod"], "delta": "0:00:00.003102", "end": "2017-03-29 10:17:34.448063",