Thank you very much! I did not know about that package.

Em quarta-feira, 20 de janeiro de 2021 às 03:09:35 UTC-3, 
[email protected] escreveu:

> The ansible part is ok, but your target host does not know about an 'ntp' 
> package.
> IIRC centos/rhel now use 'chrony' for time keeping. 
>
>
> On Wed, 20 Jan 2021 at 03:44, Oliver Schiinke <[email protected]> 
> wrote:
>
>> Hello,
>>
>> I'm trying to run this ad-hoc command to install ntp package in a 
>> specific server:
>>
>> ansible db -b -m yum -a "name=ntp state=present"
>>
>> But I'm getting this error:
>>
>>  | FAILED! => {
>>     "ansible_facts": {
>>         "discovered_interpreter_python": "/usr/bin/python"
>>     },
>>     "changed": false,
>>     "failures": [
>>         "ntp No match for argument: ntp"
>>     ],
>>     "msg": "Failed to install some of the specified packages",
>>     "rc": 1,
>>     "results": []
>> }
>>
>> I have checked the sintax at ansible docs and it seems to be ok.
>>
>> Some idea?
>>
>> 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/83d98489-4cae-4ca7-8b6b-1fd5fd2fcdacn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/83d98489-4cae-4ca7-8b6b-1fd5fd2fcdacn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> -- 
> Sent from a mobile device - please excuse the brevity, spelling and 
> punctuation.
>

-- 
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/bd650dab-1059-4d3b-9560-32e58df76050n%40googlegroups.com.

Reply via email to