2017-08-03 21:30:25 +08:00
|
|
|
---
|
2019-04-16 15:58:52 +08:00
|
|
|
- name: install redhat dependencies
|
|
|
|
package:
|
|
|
|
name: "{{ redhat_package_dependencies }}"
|
|
|
|
state: present
|
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['distribution'] == 'RedHat'
|
2019-04-16 15:58:52 +08:00
|
|
|
|
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
|
2021-03-03 22:43:50 +08:00
|
|
|
when: ansible_facts['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
|
2019-04-01 23:46:15 +08:00
|
|
|
until: result is succeeded
|