Thank you all, I am able to run my first playbook successfully.

Thanks,
Narmada

On Saturday, November 3, 2018 at 3:32:32 AM UTC-7, Dick Visser wrote:
>
> The whole point of the systemd module (or any other module, really) is to 
> abstract commands away, so don’t have to use them.
> Try out the examples and enjoy!
>
> Dick
>
>
> On Fri, 2 Nov 2018 at 19:39, Nk Chitturi <chitt...@gmail.com <javascript:>> 
> wrote:
>
>> Brian, I am very new to anisble but in the link you provided i can see 
>> some examples with systemd, it has state mentioned, but how can i use 
>> command to restart the service
>>
>> - name: restart service cron on centos, in all cases, also issue 
>> daemon-reload to pick up config changes
>>   systemd:
>>     state: restarted
>>     daemon_reload: yes
>>     name: crond
>>
>>
>> On Fri, Nov 2, 2018 at 11:34 AM Brian Coca <bc...@redhat.com 
>> <javascript:>> wrote:
>>
>>> See docs for correct syntax
>>> https://docs.ansible.com/ansible/latest/modules/systemd_module.html
>>>
>>> -- 
>>> ----------
>>> Brian Coca
>>>
>>> -- 
>>> 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-proje...@googlegroups.com <javascript:>.
>>> To post to this group, send email to ansible...@googlegroups.com 
>>> <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/CACVha7fSY2NAmSoNTJg9ohOL8RGvLJjhdr2z83Ae6hxCExd1Kw%40mail.gmail.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>>  
>>  
>>
>> -- 
>> 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-proje...@googlegroups.com <javascript:>.
>> To post to this group, send email to ansible...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CABdF8S0uppa%2Bti%2B44jHtMVO5GUJsJ8yjtqn-%3DTz8r1f0LUPmJw%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CABdF8S0uppa%2Bti%2B44jHtMVO5GUJsJ8yjtqn-%3DTz8r1f0LUPmJw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/100da1ab-b1ab-4f91-b0fa-2e1e8399e9fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to