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!
This commit is contained in:
parent
c3da3d408c
commit
915d874b1b
1 changed files with 10 additions and 5 deletions
|
@ -34,22 +34,27 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: edit hostname to be instance name
|
- name: edit hostname to be instance name
|
||||||
action: shell hostname `curl -s http://169.254.169.254/2009-04-04/meta-data/instance-id`
|
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
|
- name: add repos
|
||||||
action: copy src=$files/$item dest=/etc/yum.repos.d/$item
|
action: copy src=$files/$item dest=/etc/yum.repos.d/$item
|
||||||
with_items:
|
with_items:
|
||||||
- builder.repo
|
- builder.repo
|
||||||
- epel6.repo
|
- epel6.repo
|
||||||
|
|
||||||
- name: install pkgs
|
- name: install additional pkgs
|
||||||
action: yum state=present pkg=$item
|
action: yum state=present pkg=$item
|
||||||
with_items:
|
with_items:
|
||||||
- mock
|
- mock
|
||||||
- createrepo
|
- createrepo
|
||||||
- yum-utils
|
- yum-utils
|
||||||
- rsync
|
|
||||||
- openssh-clients
|
|
||||||
- python-selinux
|
|
||||||
|
|
||||||
- name: make sure newest rpm
|
- name: make sure newest rpm
|
||||||
action: yum name=rpm state=latest
|
action: yum name=rpm state=latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue