postgresql.yml 384 B

123456789101112
  1. - name: Install PostgreSQL server related packages
  2. apt: pkg={{ item }} state=installed
  3. with_items:
  4. - postgresql
  5. - postgresql-client
  6. - name: Install PostgreSQL backup related packages (autopostgresqlbackup)
  7. apt: pkg=autopostgresqlbackup state=installed
  8. when: with_postgresql_backup
  9. - name: Ensure PostgreSQL server is running
  10. service: name=postgresql state=started