Thanks a lot for the explanation. It really helped. Going forward I'll take 
care of posting to the correct mailing list. Thanks once again.

On Wednesday, 8 May 2019 20:21:18 UTC+5:30, oolongbrothers wrote:
>
> Hi Okmar, 
>
> Ansible itself does not include any kind of scheduling or regular runs. 
> That is part of the agent-less approach that is one of Ansible's 
> strengths. That does of course not mean that you can not accomplish what 
> you are asking for, just that it's outside of the scope of Ansible itself. 
>
> These are some of the options that you have: 
> - Schedule regular (like hourly) ansible-pull runs via cron, that way 
> your machine regularly pulls your playbooks and runs them locally. If 
> you want to review playbook run logs centrally, you would need some sort 
> of log collection on your hosts that ships them to a centralised place. 
> https://docs.ansible.com/ansible/latest/cli/ansible-pull.html 
> - Use another system for scheduling regular playbook runs on your 
> infrastructure. An example for this would be Continuous Delivery systems 
> with scheduling features, like Jenkins or Gitlab. This has the advantage 
> of having a centralised place for reviewing your playbook run logs. The 
> Ansible ecosystem also has specialised software for this kind of 
> management, with a much broader scope: 
> https://www.ansible.com/products/awx-project 
>
> By the way, this mailing list is meant for development on the actual 
> Ansible code, including Ansible modules. Please refer to the user 
> mailing list in future: 
> https://groups.google.com/forum/#!forum/ansible-project 
>
> Good luck, 
> //oolongbrothers 
>
>
> On 2019-05-08 14:28, Omkar wrote: 
> > Hello, 
> > 
> > I'm totally new to Ansible so please pardon me for my silly question. 
> > 
> > The question that I have is, can Ansible monitor a system/vm and detect 
> > whether an application/program (like tomcat/java/nginx) which was 
> > provisioned by Ansible, was removed by someone else and can it 
> > re-install that particular application when it detects such uninstalls? 
> > If we manually run the playbook then Ansible will re-install the 
> > application. But is there a way it automatically does this? Something 
> > like auto healing? 
> > 
> > Can Ansible check the hosts for their desired state and when it detects 
> > a change, can it correct it automatically? Without needing to manually 
> > running the playbook again? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Ansible Development" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to ansibl...@googlegroups.com <javascript:> 
> > <mailto:ansible-devel+unsubscr...@googlegroups.com <javascript:>>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-devel/f2bdbef1-3a7e-467f-96f0-48e1884988b2%40googlegroups.com
>  
> > 
> > <
> https://groups.google.com/d/msgid/ansible-devel/f2bdbef1-3a7e-467f-96f0-48e1884988b2%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/31f30a06-46cd-4390-bc30-41ca41c59842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to