Hi@akhtar,
You can use gather_facts: no keyword in your playbook. It will disable this task automatically. You can also see the below playbook for more understanding.
- hosts: server
gather_facts: no
tasks:
- name: Install httpd module
package:
name: httpd
state: present