Hi@akhtar,
You need to use the copy module in your Ansible command. It allows you to copy files to a remote node. You can use the below command.
[root@localhost ~]# ansible all -m copy -a "src=home.html dest=/var/www/html/"
192.168.0.179 | CHANGED => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": true,
"checksum": "6b788f3f7b8c05352bccc93a67cc13d92f9a7618",
"dest": "/var/www/html/home.html",
"gid": 0,
"group": "root",
"md5sum": "4900bfba2c30719632632fc4186083e0",
"mode": "0644",
"owner": "root",
"secontext": "system_u:object_r:httpd_sys_content_t:s0",
"size": 19,
"src": "/root/.ansible/tmp/ansible-tmp-1596045930.753713-14383-112197138626631/source",
"state": "file",
"uid": 0
}