Auto build,deploy Postgres database with ansible
See default/main.yml
├── defaults
│ └── main.yml
├── handlers
│ └── main.yml
├── tasks
│ ├── configure.yml
│ ├── initialize.yml
│ ├── main.yml
│ └── setup_debian.yml
└── templates
├── pg_hba.conf.j2
├── postgresql.conf.j2
└── postgres.sh.j2
- name: Initialize postgresql
hosts: all
become: true
roles:
- 'mach1el.ansible_postgresql'