Browse Source

ovzdb: compatibilite centos et openvz7

master
victor héry 6 years ago
parent
commit
2450809146
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      roles/ovzdb/tasks/main.yml

+ 15
- 1
roles/ovzdb/tasks/main.yml View File

@ -10,7 +10,7 @@
when: ansible_virtualization_type != 'openvz' and ansible_virtualization_role !='host'
#### Download and extract openvz-diff-backup ####
- name: install openvz-diff-backups - prerequisite
- name: install openvz-diff-backups - prerequisite Debian
apt: pkg={{item}} state=present update_cache=yes
tags:
- backup
@ -21,6 +21,20 @@
- bc
- uuid-runtime
- pbzip2
when: ansible_distribution == 'Debian'
- name: install openvz-diff-backups - prerequisite Centos
yum: name={{ item }} state=present update_cache=yes
tags:
- backup
with_items:
- bind-utils
- pcre
- rsync
- bc
- util-linux
- pbzip2
when: ansible_distribution == 'CentOS' or ansible_distribution == 'CloudLinux' or ansible_distribution == 'Virtuozzo'
## TODO : possibility to reduce to one task with ansible 2.0
## Ref : src option from http://docs.ansible.com/ansible/unarchive_module.html

Loading…
Cancel
Save