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.
- 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 ?