1234567891011121314151617181920212223242526272829 |
- - name: 'Install PostgreSQL server related packages'
- apt:
- pkg:
- - 'postgresql'
- - 'postgresql-client'
- state: 'present'
- tags:
- - 'postgresql'
- - 'sql'
- - name: 'Install AutoPostgreSQLBackup package'
- apt:
- pkg:
- - 'autopostgresqlbackup'
- state: 'present'
- when: with_postgresql_backup|bool
- tags:
- - 'postgresql'
- - 'sql'
- - name: 'Ensure PostgreSQL server is running'
- service:
- name: postgresql
- state: started
- tags:
- - 'postgresql'
- - 'sql'
- # vim: ft=yaml.ansible
|