Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
632 B

---
- set_fact:
megacli: MegaCli-{{ megacli_version }}.noarch.rpm
- name: Check if MegaCLi is installed
shell: rpm -q --qf "%{VERSION}-%{RELEASE}" MegaCli 2>/dev/null
register: megacli_installed_version
changed_when: False
failed_when: False
when: lsi_controllers | length > 0
- name: Copy MegaCli package
copy: src={{ megacli }} dest=/tmp
when:
- lsi_controllers | length > 0
- megacli_installed_version.stdout != megacli_version
- name: Install MegaCli
yum: name=/tmp/{{ megacli }} state=present
when:
- lsi_controllers | length > 0
- megacli_installed_version.stdout != megacli_version