mirror of https://github.com/ceph/ceph-ansible.git
defaults: refact package dependencies installation.
Becausepull/3871/head5c98e361df
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 commitedfa4310d3
)
parent
5aca0996ed
commit
3787c9b7ad
|
@ -76,10 +76,14 @@ dummy:
|
|||
############
|
||||
# PACKAGES #
|
||||
############
|
||||
#debian_package_dependencies: []
|
||||
|
||||
#centos_package_dependencies:
|
||||
# - epel-release
|
||||
# - libselinux-python
|
||||
|
||||
#redhat_package_dependencies: []
|
||||
|
||||
#suse_package_dependencies:
|
||||
# - python-xml
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue