# Automate the interactive prompt (Openshift Installation)

**URL:** <https://forum.ansible.com/t/automate-the-interactive-prompt-openshift-installation/8749>\
**Category:** Get Help\
**Tags:** playbook, howto, kubernetes\
**Created:** [September 25, 2024, 10:51am UTC](https://forum.ansible.com/t/automate-the-interactive-prompt-openshift-installation/8749 "2024-09-25T10:51:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geto10](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/geto10/32/4638_2.png) [@Geto10](https://forum.ansible.com/u/Geto10)\
**Post date:** [September 25, 2024, 10:51am UTC](https://forum.ansible.com/t/automate-the-interactive-prompt-openshift-installation/8749/1 "2024-09-25T10:51:47Z")

</div>

I am in the process of automating the deployment of an OpenShift cluster. When I execute the command:

`~/openshift-install --dir ~/okd/install-directory create manifests`

it prompts for input through an interactive interface. The command presents eight options, of which the first five must be selected from a dropdown list, while the remaining three require manual input.

```bash
- name: Run OpenShift installer to create manifests
      ansible.builtin.expect:
        command: "/root/openshift-install --dir /root/okd/install-directory create manifests"
        responses:
          "(?i)Platform": "openstack"
          "(?i)Cloud": "openstack"
          "(?i)ExternalNetwork": ""
          "(?i)APIFloatingIPAddress": ""
          "(?i)FlavorName": ""
          "(?i)Base Domain": ""
          "(?i)Cluster Name": ""
          "(?i)Pull Secret": ' '

```

How can i successfully automate this ?
