From 2b9a44658672559fff187610578832c22a6c2a0c Mon Sep 17 00:00:00 2001 From: armab Date: Mon, 23 Jan 2017 20:38:01 +0200 Subject: [PATCH] Use 'ansible_os_family' to cover both CentOS & RHEL --- roles/st2mistral/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/st2mistral/tasks/main.yml b/roles/st2mistral/tasks/main.yml index 9e13902f..9226cf16 100644 --- a/roles/st2mistral/tasks/main.yml +++ b/roles/st2mistral/tasks/main.yml @@ -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