Skip to content

Commit

Permalink
Use 'ansible_os_family' to cover both CentOS & RHEL
Browse files Browse the repository at this point in the history
  • Loading branch information
armab committed Jan 23, 2017
1 parent 7658acf commit 2b9a446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/st2mistral/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package:
name: st2python
state: present
when: (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and ansible_distribution_major_version == "6"
when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "6"
tags: st2mistral

- name: Install latest st2mistral package
Expand Down

0 comments on commit 2b9a446

Please sign in to comment.