2017-08-03 21:30:25 +08:00
|
|
|
---
|
|
|
|
- name: install redhat dependencies
|
|
|
|
package:
|
2017-10-12 01:18:12 +08:00
|
|
|
name: "{{ redhat_package_dependencies }}"
|
2017-08-03 21:30:25 +08:00
|
|
|
state: present
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'RedHat'
|
2017-08-03 21:30:25 +08:00
|
|
|
|
|
|
|
- name: install centos dependencies
|
2017-10-09 23:10:39 +08:00
|
|
|
yum:
|
2017-10-12 01:18:12 +08:00
|
|
|
name: "{{ centos_package_dependencies }}"
|
2017-08-03 21:30:25 +08:00
|
|
|
state: present
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2017-09-15 06:48:53 +08:00
|
|
|
when:
|
|
|
|
- ansible_distribution == 'CentOS'
|
2017-08-03 21:30:25 +08:00
|
|
|
|
2018-05-01 19:20:19 +08:00
|
|
|
- name: install redhat ceph packages
|
2018-04-06 03:40:15 +08:00
|
|
|
package:
|
2018-05-01 19:20:19 +08:00
|
|
|
name: "{{ redhat_ceph_pkgs | unique }}"
|
2018-06-27 21:05:44 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|