ansible compare 2 php files

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

Leave a Reply

Your email address will not be published. Required fields are marked *