Skip to content

Commit

Permalink
Adding check to verify if Powerflex is already installed prior to lau…
Browse files Browse the repository at this point in the history
…nching the installation
  • Loading branch information
jproque-dell committed Jan 15, 2021
1 parent 66f52a0 commit af1bebb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions powerflex-ansible/roles/powerflex-facts/tasks/facts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@
- name: Set the spare policy based upon SDSs count
set_fact:
spare_policy_pct: "{{ ((100 / sds_count | int) | round) | int }}"

- name: Check installed RPMS
package_facts:
manager: auto
19 changes: 10 additions & 9 deletions powerflex-ansible/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,44 +29,45 @@
gather_facts: no
become: true
roles:
- powerflex-mdm
- { role: "powerflex-mdm", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-mdm

- hosts: tbs
name: "Install PowerFlex TB"
gather_facts: no
become: true
roles:
- powerflex-tb
- { role: "powerflex-tb", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-tb

- hosts: mdms
name: "Configure PowerFlex storage"
gather_facts: no
roles:
- powerflex-config
- { role: "powerflex-config", when: "'EMC-ScaleIO-mdm' not in ansible_facts.packages" }
tags: powerflex-config

- hosts: sdss
name: "Install PowerFlex SDS"
gather_facts: no
become: true
roles:
- powerflex-sds
- { role: "powerflex-sds", when: "'EMC-ScaleIO-sds' not in ansible_facts.packages" }
tags: powerflex-sds

- hosts: all
name: "Install PowerFlex LIA"
gather_facts: no
become: true
roles:
- powerflex-lia
roles:
- { role: "powerflex-lia", when: "'EMC-ScaleIO-lia' not in ansible_facts.packages" }
tags: powerflex-lia

- hosts: sdcs
name: "Install PowerFlex SDC"
gather_facts: no
become: true
roles:
- powerflex-sdc
- { role: "powerflex-sdc", when: "'EMC-ScaleIO-sdc' not in ansible_facts.packages" }
tags: powerflex-sdc

0 comments on commit af1bebb

Please sign in to comment.