postgresql.yml 486 B

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