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:
parent
818129c9ac
commit
fc042e6b3b
4 changed files with 14 additions and 3 deletions
|
@ -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'
|
||||||
|
|
|
@ -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
6
tasks/packages.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: "Install PostgreSQL client"
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name: "{{ postgresql_backup.required_packages }}"
|
||||||
|
state: present
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue