1
0
Fork 0
mirror of https://github.com/roles-ansible/role-postgresql-backup.git synced 2024-08-16 10:19:49 +02:00

install needed packages

This commit is contained in:
L3D 2020-07-08 15:45:38 +02:00 committed by L3D
parent 818129c9ac
commit fc042e6b3b
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 14 additions and 3 deletions

View file

@ -3,4 +3,7 @@
submodules_versioncheck: false submodules_versioncheck: false
postgresql_backup: postgresql_backup:
foo: bar required_packages:
- postgresql-client
backup_dir: /var/backup/postgresql
date_format: '%Y-%m-%d_%H-%M'

View file

@ -6,3 +6,4 @@
- include_tasks: versioncheck.yml - include_tasks: versioncheck.yml
when: submodules_versioncheck|bool when: submodules_versioncheck|bool
- include_tasks: packages.yml

6
tasks/packages.yml Normal file
View file

@ -0,0 +1,6 @@
---
- name: "Install PostgreSQL client"
become: true
package:
name: "{{ postgresql_backup.required_packages }}"
state: present

View file

@ -1,7 +1,8 @@
--- ---
# versionscheck # versionscheck
playbook_version_number: 10 # should be int playbook_version_number: 12 # should be int
playbook_version_path: 'role-postgresql-backup_roles-ansible_github.com.version' # unique string playbook_version_path: 'role-postgresql-backup_roles-ansible_github.com.version' # unique string
_postgresql_backup: _postgresql_backup:
foo: bar required_packages:
- postgresql-client