* [gentoo-user] ansible daemon
@ 2017-11-18 21:36 Damo Brisbane
2017-11-18 21:38 ` Alan McKinnon
0 siblings, 1 reply; 2+ messages in thread
From: Damo Brisbane @ 2017-11-18 21:36 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
Hi,
I am wanting to have continuously running ansible daemon to push out
desired state to some servers. I do not see such functionally covered
within readme (https://wiki.gentoo.org/wiki/Ansible). Am I correct to
assume that if I want to run ansible as a daemon, I will have to set up [if
I want] *ansible user*, init.d/ansible rc script?
Also note I haven't used Ansible in production - I am assuming that running
as a daemon is best for this scenario.
Thank you
Damon
[-- Attachment #2: Type: text/html, Size: 634 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] ansible daemon
2017-11-18 21:36 [gentoo-user] ansible daemon Damo Brisbane
@ 2017-11-18 21:38 ` Alan McKinnon
0 siblings, 0 replies; 2+ messages in thread
From: Alan McKinnon @ 2017-11-18 21:38 UTC (permalink / raw
To: gentoo-user
On 18/11/2017 23:36, Damo Brisbane wrote:
> Hi,
>
> I am wanting to have continuously running ansible daemon to push out
> desired state to some servers. I do not see such functionally covered
> within readme (https://wiki.gentoo.org/wiki/Ansible). Am I correct to
> assume that if I want to run ansible as a daemon, I will have to set up
> [if I want] *ansible user*, init.d/ansible rc script?
>
> Also note I haven't used Ansible in production - I am assuming that
> running as a daemon is best for this scenario.
You assume wrong. Ansible is not a daemon, it does not listen and cannot
be a daemon. When you need ansible to do something, you give it a play
to run and it does it. Then the play ends and the command quits. There
isn't really much scope for having ansible "continuously run", it does
not know when you have changed things that need updating - only you know
that.
I think you want Tower or AWX or even rundeck, those are
scheduling/controlling/orchestration wrappers that can fire off ansible
jobs.
As a last resort you can always add a cron to run an overall site.yml
play every X hours or so
Are you coming from a puppet/salt/chef world? If so, the one thing to
always keep in mind is this:
Ansible is almost, but not quite, entirely unlike Puppet.
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-18 21:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-18 21:36 [gentoo-user] ansible daemon Damo Brisbane
2017-11-18 21:38 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox