From 041d4d666eb1eace7ffbbfc4419ad21f2f6f6dbf Mon Sep 17 00:00:00 2001
From: Greg Althaus <galthaus@austin.rr.com>
Date: Thu, 20 Apr 2017 11:17:01 -0500
Subject: [PATCH] Install required selinux-python bindings in bootstrap on
 centos.  The bootstrap tty fixup needs it.

---
 roles/bootstrap-os/tasks/bootstrap-centos.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml
index b8cf126c1..dfc117b29 100644
--- a/roles/bootstrap-os/tasks/bootstrap-centos.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml
@@ -13,3 +13,15 @@
     line: "enabled=0"
     state: present
   when: fastestmirror.stat.exists
+
+- name: Install packages requirements for bootstrap
+  action:
+    module: "{{ ansible_pkg_mgr }}"
+    name: "{{ item }}"
+    state: latest
+  register: bs_pkgs_task_result
+  until: bs_pkgs_task_result|succeeded
+  retries: 4
+  delay: "{{ retry_stagger | random + 3 }}"
+  with_items: "libselinux-python"
+
-- 
GitLab