Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Johnson <dave@ansibleworks.com>2014-07-01 21:17:48 +0400
committerDave Johnson <dave@ansibleworks.com>2014-07-01 21:17:48 +0400
commit0643b72e0fb35aa2d7924207413bca856e03b8d9 (patch)
tree0ed100a2de42ae2869298d074baf444db57ee7b6
parent497e49c965c8358fe60dfea286e1cd1b30b7b960 (diff)
Install SE Linux python bindings
Install SE Linux python bindings in the common role, before copying any files into place. Fixes an issue deploying against CentOS in AWS.
-rw-r--r--lamp_haproxy/roles/common/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lamp_haproxy/roles/common/tasks/main.yml b/lamp_haproxy/roles/common/tasks/main.yml
index c280d9b..bf59de7 100644
--- a/lamp_haproxy/roles/common/tasks/main.yml
+++ b/lamp_haproxy/roles/common/tasks/main.yml
@@ -1,6 +1,12 @@
---
# This role contains common plays that will run on all nodes.
+- name: Install python bindings for SE Linux
+ yum: name={{ item }} state=present
+ with_items:
+ - libselinux-python
+ - libsemanage-python
+
- name: Create the repository for EPEL
copy: src=epel.repo dest=/etc/yum.repos.d/epel.repo