From 915d874b1be3a7fbf823eab498439c04101a34e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 15 Oct 2013 13:36:58 +0000 Subject: [PATCH] install selinux before adding additional repos and well install all base packages before adding additional repos addressing: TASK: [add repos] ************************************************************* failed: [172.16.3.4] => (item=builder.repo) => {"failed": true, "item": "builder.repo"} msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed! --- files/copr/provision/builderpb.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/files/copr/provision/builderpb.yml b/files/copr/provision/builderpb.yml index 553db073b0..96ae8b5135 100644 --- a/files/copr/provision/builderpb.yml +++ b/files/copr/provision/builderpb.yml @@ -34,22 +34,27 @@ tasks: - name: edit hostname to be instance name action: shell hostname `curl -s http://169.254.169.254/2009-04-04/meta-data/instance-id` - + + - name: install pkgs + action: yum state=present pkg=$item + with_items: + - rsync + - openssh-clients + - libselinux-python + - libsemanage-python + - name: add repos action: copy src=$files/$item dest=/etc/yum.repos.d/$item with_items: - builder.repo - epel6.repo - - name: install pkgs + - name: install additional pkgs action: yum state=present pkg=$item with_items: - mock - createrepo - yum-utils - - rsync - - openssh-clients - - python-selinux - name: make sure newest rpm action: yum name=rpm state=latest