Check this out.
https://github.com/Tomorrow9/ansible/commit/423d6391a5cba4b188719de7c65e7c550326d82c


On Wed, 29 May 2019, 21:01 Veera, <[email protected]> wrote:

> Hi,
>
> I am using the following snippet  as part of a play.
> I have to refresh the  yum repository list as I will replace the
> repository file every time I run the playbook .
> So , After  having  a successful  play  to copy my test.repo file to
> /etc/yum.repos.d/test.repo  . I am able to  successfully run the  "yum
> repolist"  with command module.
>
>  - name: Refresh the yum repository  cache
>>       #yum:
>>       #  update_cache: yes
>>       command: "yum repolist"
>>       register: repo_list
>
>
>
> But ansible suggest to use yum module  , but the doc have no equivalent
> for the  "repolist" of yum .
> Is "update_cache"  do the same fuction like "yum repolist"?
>
> --
> 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/01be47bc-81eb-46c3-bbfd-cd7563a0c19d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/01be47bc-81eb-46c3-bbfd-cd7563a0c19d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CANErU6kyas770bR793nKBcAyh_Py9ysWEKLD1Y%2BRJbYVPmEhqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to