Writing an endless playbook strategy plugin

Hey everyone,

I would like to have your input on that question.

I have a really special use case where I want to run an endless playbook (on localhost only). I basically want to implement an endless loop on my playbook. As we all know, looping over a set of tasks or blocks is not possible with a statement like while true, which will look like:

`

role/tasks/main.yml

[...] I basically want to implement an endless loop on my
playbook.

[...]

I can of course use a higher level command that will keep triggering my
playbook in a loop, but I was actually thinking about implementing a
_custom strategy_ called *endless *for example.

I don't understand the "but": what do you *gain* by implementing your
own strategy apart from learning to implement your own custom strategy?

No (ana)cron(-alike) available?

Cheers,
Benjamin

Well in my case I wont even need a cron-alike tool… I just want to start the playbook once and keep it running all the time. Maybe something like supervisor could help me keeping that playbook running all the time.

I would just setup a daemontools service or if using systemd a unit that continually restarts ansible-playbook every time it dies