0

I am trying to install postgres on different machine using ansible. Currently I am using postgres source to install on a partical location.

Its taking too much time. Is their a way to run postgres by simpy unzipping a tar or zip binary file like that of tomcat zip.

If any alternative is their please suggest me one. :)

2
  • 2
    Do you know ansible galaxy? Would it not be easier using ansible gathering facts phase to write rules installing the official packages depending on the distributions you use? Commented Jul 8, 2016 at 11:20
  • I know but i want to install postgres in a specific location, so it will be easy if i could just unzip and start post gres :D Commented Jul 8, 2016 at 11:21

1 Answer 1

0

You're using ansible already. Just let ansible do the right thing and install the appropriate packages specific to each distro, using the native package manager for each distro.

Otherwise, you're going to have to build and compile your own version of postgresql for each platform and package them yourself. Postgresql isn't a java application, it is written in C and needs to be compile for each platform based on what is available.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.