I’ve given that a go. Initially wasn’t working because I didn’t have the pexpect module installed but I think I have that sorted with the following dependencies installed now: epel, pip and pexpect > version 3.3.
I have tried running this task but it just hangs for the entire timeout duration I have set.
Database Name [default’:’ postcodesiodb]: “postcodesiodb”
Postgresql Port [default’:’ 5432]: “5432”
tags:
setup
install
I have also tried with no space after the final colon but that then changes the font to all orange which doesn’t seem right. Regardless, i tried it but the error was still exactly the same as below:
This is the only error logging I have but it’s failed at the first input I am attempting to populate here the postgres Super user. Any ideas how I need to pass in these answers and or variables if I don’t want to hard code? Currently it looks like it is picking up a corrupt / blank value as shown by those chatacters in the green section below.
“Postgresql Superuser (for database creation) [default: postgres]:”]}
The wording / syntax of the questions when the script is called is exactly like this:
Postgresql Superuser (for database creation) [default: postgres]: