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. For more options, visit https://groups.google.com/d/optout.
