mirror of https://github.com/ceph/ceph-ansible.git
24 lines
640 B
YAML
24 lines
640 B
YAML
---
|
|
- name: install redhat dependencies
|
|
package:
|
|
name: "{{ redhat_package_dependencies }}"
|
|
state: present
|
|
register: result
|
|
until: result is succeeded
|
|
when: ansible_facts['distribution'] == 'RedHat'
|
|
|
|
- name: install centos dependencies
|
|
yum:
|
|
name: "{{ centos_package_dependencies }}"
|
|
state: present
|
|
register: result
|
|
until: result is succeeded
|
|
when: ansible_facts['distribution'] == 'CentOS'
|
|
|
|
- name: install redhat ceph packages
|
|
package:
|
|
name: "{{ redhat_ceph_pkgs | unique }}"
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
register: result
|
|
until: result is succeeded
|