defaults: refact package dependencies installation.

Because 5c98e361df could be seen as a non
backward compatible change this commit reverts it and bring back package
dependencies installation support.
Let's just modify the default value instead.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit edfa4310d3)
pull/3871/head
Guillaume Abrioux 2019-04-16 09:58:52 +02:00 committed by Dimitri Savineau
parent 5aca0996ed
commit 3787c9b7ad
5 changed files with 30 additions and 0 deletions

View File

@ -76,10 +76,14 @@ dummy:
############
# PACKAGES #
############
#debian_package_dependencies: []
#centos_package_dependencies:
# - epel-release
# - libselinux-python
#redhat_package_dependencies: []
#suse_package_dependencies:
# - python-xml

View File

@ -76,10 +76,14 @@ fetch_directory: ~/ceph-ansible-keys
############
# PACKAGES #
############
#debian_package_dependencies: []
#centos_package_dependencies:
# - epel-release
# - libselinux-python
#redhat_package_dependencies: []
#suse_package_dependencies:
# - python-xml

View File

@ -11,6 +11,15 @@
register: result
until: result is succeeded
- name: install dependencies
apt:
name: "{{ debian_package_dependencies }}"
state: present
update_cache: yes
cache_valid_time: 3600
register: result
until: result is succeeded
- name: include install_debian_packages.yml
include_tasks: install_debian_packages.yml
when:

View File

@ -1,4 +1,13 @@
---
- name: install redhat dependencies
package:
name: "{{ redhat_package_dependencies }}"
state: present
register: result
until: result is succeeded
when:
- ansible_distribution == 'RedHat'
- name: install centos dependencies
yum:
name: "{{ centos_package_dependencies }}"

View File

@ -68,10 +68,14 @@ ceph_conf_local: false
############
# PACKAGES #
############
debian_package_dependencies: []
centos_package_dependencies:
- epel-release
- libselinux-python
redhat_package_dependencies: []
suse_package_dependencies:
- python-xml