It does.  From your description, it sounds like the RHEL repository
has a packageset that's generating conflicts in your install.  the
update_cache is likely just making the error in the repository
visible.

CentOS and RHEL pull from different repositories and don't always have
the same set of packages at the same time (and you could also have
different packages installed on the two machines which complicates
things further).

A better test for diagnosing this would be whether using yum from the
commandline (or via ansible's command module) on the RHEL box does the
same thing or a different thing from the ansible command.

-Toshio

On Thu, Nov 9, 2017 at 10:15 AM, Kuldip Madnani <[email protected]> wrote:
> The example shown in Ansible website shows that update_cache is executed
> when ansible_distribution is Centos.
>
> - name: install system updates for centos systems yum: name=* state=latest
> update_cache=yes when: ansible_distribution == "CentOS"
>
> The exact same command works for us when we run it on Centos without the
> when condition, however it hangs up for hours in RHEL and finally outputs
> with a long error message depicting conflicts..
>
> Does update_cache work in RHEL?
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9a8e1b30-9fe8-4c48-875f-b734b19019b2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPrnkaSajKN-Z%3DZmmuPXCVrb3pAxMJDjPkTq%2Bx2JOdT7PbAAZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to