ansible 2.1.1, yum install and disabled respositories

35 views
Skip to first unread message

Stefan Klatt

unread,
Sep 28, 2016, 12:59:55 PM9/28/16
to ansible...@googlegroups.com
Hi,

I use ansible 2.1.1 and have a problem with "yum install" if the used
repository is disabled.

Here the task:

- name: Bareos-fd installieren / RedHat family
yum: name={{item}} state=latest
with_items:
- bareos-client


With disabled repository I get the following response:

****************************************************
TASK [sklatt.bareos_client : Bareos-fd installieren / RedHat family]
***********
ok: [sogo.cac.is-a-geek.com] => (item=[u'bareos-client])

NO MORE HOSTS LEFT
*************************************************************
to retry, use: --limit @/etc/ansible/#CaC/bareos_clients-CaC.retry

PLAY RECAP
*********************************************************************
sogo.cac.is-a-geek.com : ok=2 changed=1 unreachable=0 failed=1
****************************************************

If I enable the repository it work like a charm....

Regards

Stefan

--
*CaC, Computer and Communication*
Inhaber Stefan Klatt
End-2-End Senior Network Consultant
Triftstrasse 9
60528 Frankfurt
Germany
USt-IdNr.: DE260461592

Tel.: +49-(0)172-6807809
Tel.: +49-(0)69-67808-900
Fax: +49-(0)69-67808-837
Email: stefan...@cac-netzwerk.de
Profil: http://www.cac-netzwerk.de/profil

signature.asc

Vince Skahan

unread,
Sep 29, 2016, 3:09:52 PM9/29/16
to Ansible Project
On Wednesday, September 28, 2016 at 9:59:55 AM UTC-7, Stefan Klatt wrote:
I use ansible 2.1.1 and have a problem with "yum install" if the used
repository is disabled.



Sounds like it's doing the correct thing.

Perhaps add the "enablerepo" option to your playbook ?
 http://docs.ansible.com/ansible/yum_module.html

Stefan Klatt

unread,
Sep 29, 2016, 6:06:54 PM9/29/16
to ansible...@googlegroups.com
Hi Vince,

why? Without enabled repository you get normal the info there is nothing
to update. Here the same, there is a "OK", not an error... but ansible
stops the playbook.

Regards

Stefan
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-proje...@googlegroups.com
> <mailto:ansible-proje...@googlegroups.com>.
> To post to this group, send email to ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/b2ed268c-f07a-47cd-b3e6-919e24c587e8%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/b2ed268c-f07a-47cd-b3e6-919e24c587e8%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
signature.asc
Reply all
Reply to author
Forward
0 new messages