Hi,
i am using command module in my playbook where i generally want a uptime of my remote machine but whenever i run the playbook i am getting my control machine uptime for the remote hosts.
If you add other tasks to this play, do they also run on the control machine?
also, what does your inventory look like?
And take a look at "ansible-config dump --only-changed" to see if
something is off there
DEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /home/nshet/ansible.log
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = yaml
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
these are the changes in config file and in my inventory i had written connection as network_cli and there is no change as such apart from host name user name and password
yeah for the File module aso i am seeing the same , the file is getting created in to control machine only
that network_cli is probably the culprit.
Your servers are *not* network devices.
Remove that and check again.