Hi@akhtar,
To ask for user input, we will use the vars_prompt section in our playbook. You can follow the below playbook for better understanding.
- hosts: server
  gather_facts: no
  vars_prompt:
    - name: "Install"
      prompt: "Which software you want to install"
  tasks:
  - name: Install httpd module
    package:
      name: "{{ Install }}"
      state: present