postgresql.yml 530 B

1234567891011121314151617181920212223242526272829
  1. - name: 'Install PostgreSQL server related packages'
  2. apt:
  3. pkg:
  4. - 'postgresql'
  5. - 'postgresql-client'
  6. state: 'present'
  7. tags:
  8. - 'postgresql'
  9. - 'sql'
  10. - name: 'Install AutoPostgreSQLBackup package'
  11. apt:
  12. pkg:
  13. - 'autopostgresqlbackup'
  14. state: 'present'
  15. when: with_postgresql_backup|bool
  16. tags:
  17. - 'postgresql'
  18. - 'sql'
  19. - name: 'Ensure PostgreSQL server is running'
  20. service:
  21. name: postgresql
  22. state: started
  23. tags:
  24. - 'postgresql'
  25. - 'sql'
  26. # vim: ft=yaml.ansible