
The effective command executed is postgresql-setup initdb. There is a command-line utility that you could execute using the Ansible module.

The second step is to initialize the PostgreSQL database. These include the distribution-related binaries, libraries, and documentation for your RedHat-like system. You are going to use the Ansible module. The first step is to install the packages to perform server, client, and utils. In order to install PostgreSQL on a RedHat-like system, you need to perform three steps. Ansible Install PostgreSQL in RedHat-like systems I’m Luca Berton and welcome to today’s episode of Ansible Pilot. I’m going to show you a live demo and some simple Ansible code.

