We need playbook.
—
– name: compare files
hosts: hosting
sudo: True
tasks:
– name: whatever
action: copy src=/var/www/html/update.php dest=/usr/local/apache/htdocs/update.php
ansible-playbook diff_php.yml -kK -u admins –limit=HostA –check –diff