Closed RafaelMiquelino closed 3 years ago
This happened to me too..
I solve it just by adding this code (that is also in ansible-role-ntp/molecule/default/converge.yml)
- name: Update apt cache. apt: update_cache: yes cache_valid_time: 600 when: ansible_os_family == 'Debian'
on top of ansible-roles-ntp/tasks/main.yaml.
That would work for my specific case but I’m not sure if that could be the solution as this is only applicable when the apt
package manager is used.
From: Gianmarco Murru notifications@github.com Sent: Thursday, August 6, 2020 5:02:37 AM To: geerlingguy/ansible-role-ntp ansible-role-ntp@noreply.github.com Cc: RafaelMiquelino rafaelmiquelino@gmail.com; Author author@noreply.github.com Subject: Re: [geerlingguy/ansible-role-ntp] fatal: [server]: FAILED! => {"changed": false, "msg": "No package matching 'ntp' is available"} (#83)
This happened to me too..
I solve it just by adding this code (that is also in ansible-role-ntp/molecule/default/converge.yml)
on top of ansible-roles-ntp/tasks/main.yaml.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/geerlingguy/ansible-role-ntp/issues/83#issuecomment-669776884, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHPKCM5YEPRIXFL5MGCAGXTR7JPR3ANCNFSM4PVXQOOQ.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Hi, I got the following error message when using this role:
I solved that by manually updating the package manager cache with the
apt update
command. However should it be done as part of the role? I know we can automatically do that by passingupdate_cache: yes
to the moduleapt
but not sure how to manage that with the general package manager module that you are using.