Re: [ansible-project] Could not find the requested service ntpd: host

2022-02-04 Thread Rilindo Foster
Arjun,

We don’t know without the error. Please paste in the error that you saw earlier.

- Rilindo

> On Feb 4, 2022, at 9:10 AM, arjungoel 1995  wrote:
> 
> Hi, I tried with the ntp under service module a couple of hours ago but that 
> didn't work. But now I tried to run the same code and it worked for me. 
> Similarly I ran a sample ansible playbook for Apache Service and first it 
> gave me that error and then it ran successfully. Was it a temporary issue?
> 
> Thanks
> Arjun Goel
> 
> On Fri, Feb 4, 2022 at 5:24 PM Parth Patel  > wrote:
> Make sure to provide output not just error.
> 
> Give a try changing name: ntp under service module.
> 
> 
> 
> On Fri, 4 Feb 2022 at 4:59 PM, arjungoel 1995  > wrote:
> I am getting the above error while running this ansible playbook:
> 
> `
> ---
> - hosts: all
>   become: yes
>   tasks:
> - name: Ensure NTP is installed.
>   yum: name=ntp state=present
> - name: Ensure NTP is running.
>   service: 
> name: ntpd
> state: started
> enabled: yes
> 
> `
> 
> Can someone please rectify the issue which is causing this error?
> 
> Thanks
> 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/9df24adc-c6ac-484b-9060-4d5b9327871an%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 ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAEMGyLK9Nwkn61ZovVpLWF2_wYcKTYX5CPPmzX7XBJ0d0nE7ow%40mail.gmail.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 ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CALh2VP%2BtOrnHc-5vpdCgsX4UhCRVk3RNC-MAi-Aby1JWwZObmQ%40mail.gmail.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/436F9B90-13DF-4293-B92B-3D8323E3E713%40gmail.com.


Re: [ansible-project] Could not find the requested service ntpd: host

2022-02-04 Thread arjungoel 1995
Hi, I tried with the ntp under service module a couple of hours ago but
that didn't work. But now I tried to run the same code and it worked for
me. Similarly I ran a sample ansible playbook for Apache Service and first
it gave me that error and then it ran successfully. Was it a temporary
issue?

Thanks
Arjun Goel

On Fri, Feb 4, 2022 at 5:24 PM Parth Patel 
wrote:

> Make sure to provide output not just error.
>
> Give a try changing name: ntp under service module.
>
>
>
> On Fri, 4 Feb 2022 at 4:59 PM, arjungoel 1995 
> wrote:
>
>> I am getting the above error while running this ansible playbook:
>>
>> `
>> ---
>> - hosts: all
>>   become: yes
>>   tasks:
>> - name: Ensure NTP is installed.
>>   yum: name=ntp state=present
>> - name: Ensure NTP is running.
>>   service:
>> name: ntpd
>> state: started
>> enabled: yes
>>
>> `
>>
>> Can someone please rectify the issue which is causing this error?
>>
>> Thanks
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/9df24adc-c6ac-484b-9060-4d5b9327871an%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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEMGyLK9Nwkn61ZovVpLWF2_wYcKTYX5CPPmzX7XBJ0d0nE7ow%40mail.gmail.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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALh2VP%2BtOrnHc-5vpdCgsX4UhCRVk3RNC-MAi-Aby1JWwZObmQ%40mail.gmail.com.


Re: [ansible-project] Could not find the requested service ntpd: host

2022-02-04 Thread Parth Patel
Make sure to provide output not just error.

Give a try changing name: ntp under service module.



On Fri, 4 Feb 2022 at 4:59 PM, arjungoel 1995 
wrote:

> I am getting the above error while running this ansible playbook:
>
> `
> ---
> - hosts: all
>   become: yes
>   tasks:
> - name: Ensure NTP is installed.
>   yum: name=ntp state=present
> - name: Ensure NTP is running.
>   service:
> name: ntpd
> state: started
> enabled: yes
>
> `
>
> Can someone please rectify the issue which is causing this error?
>
> Thanks
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9df24adc-c6ac-484b-9060-4d5b9327871an%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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEMGyLK9Nwkn61ZovVpLWF2_wYcKTYX5CPPmzX7XBJ0d0nE7ow%40mail.gmail.com.


[ansible-project] Could not find the requested service ntpd: host

2022-02-04 Thread arjungoel 1995
I am getting the above error while running this ansible playbook:

`
---
- hosts: all
  become: yes
  tasks:
- name: Ensure NTP is installed.
  yum: name=ntp state=present
- name: Ensure NTP is running.
  service: 
name: ntpd
state: started
enabled: yes

`

Can someone please rectify the issue which is causing this error?

Thanks

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9df24adc-c6ac-484b-9060-4d5b9327871an%40googlegroups.com.