So, concluding, nothing in this thread is ansible related, but OS specific package convention related instead :)
On Sat, 22 Jul 2023 at 21:52, Todd Lewis <[email protected]> wrote: > > In that case (RHEL8), definitely `chrony`. > > On Saturday, July 22, 2023 at 3:50:38 PM UTC-4 Rilindo Foster wrote: >> >> Given that the OP is using YUM resource, very likely a RHEL-like >> distribution, which certainly meant RHEL 8, since the NTP daemon appears to >> be no longer supported in that version. >> >> On Jul 22, 2023, at 2:45 PM, Todd Lewis <[email protected]> wrote: >> >> Maybe chrony rather than ntp? What OS is your target host running? >> >> On Saturday, July 22, 2023 at 3:27:11 PM UTC-4 arjungoel 1995 wrote: >>> >>> Hi, I was just testing a basic playbook in Ansible. Here is the playbook >>> code: >>> >>> --- >>> - name: Set up NTP on all servers >>> hosts: all >>> become: true >>> tasks: >>> - name: Ensure NTP is installed >>> yum: >>> name: ntp >>> state: present >>> - name: Ensure NTP is running >>> service: >>> name: ntpd >>> state: started >>> enabled: yes >>> >>> >>> When I am running the ansible-playbook playbook.yaml command, I am getting >>> this error: >>> >>> TASK [Ensure NTP is installed] >>> **************************************************************************************************************** >>> fatal: [3.226.126.95]: FAILED! => {"changed": false, "failures": ["No >>> package ntp available."], "msg": "Failed to install some of the specified >>> packages", "rc": 1, "results": []} >>> >>> PLAY RECAP >>> ************************************************************************************************************************************ >>> 3.226.126.95 : ok=1 changed=0 unreachable=0 failed=1 >>> skipped=0 rescued=0 ignored=0 >>> >>> >>> Please help me. >> >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/b2c97345-e157-492e-bcff-a345002060d2n%40googlegroups.com. >> >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/5b0bd5f9-e83a-4201-babe-7a39616b570fn%40googlegroups.com. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLZOP7vemX3xMCzkXz9HGWNc0SAX2jbG-r%3DpsOwFACu5aA%40mail.gmail.com.
