From 5cec2dd17f9e918ff1b94d82c1fcc6747b25a1da Mon Sep 17 00:00:00 2001 From: Robin Clarke Date: Fri, 15 May 2015 10:53:27 +0200 Subject: [PATCH] libselinux-python required in CentOS 6.x --- tasks/elasticsearch-RedHat.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/elasticsearch-RedHat.yml b/tasks/elasticsearch-RedHat.yml index 8907a8f..c2d7223 100644 --- a/tasks/elasticsearch-RedHat.yml +++ b/tasks/elasticsearch-RedHat.yml @@ -1,4 +1,7 @@ --- +- name: Ensure libselinux-python on CentOS 6.x + yum: name=libselinux-python state=present update_cache=yes + when: ( ansible_distribution == "CentOS" ) and ( ansible_distribution_major_version == "6" ) - name: RedHat - add Elasticsearch repo template: src=elasticsearch.repo dest=/etc/yum.repos.d/elasticsearch-{{ es_major_version }}.repo - name: RedHat - Install Elasticsearch