Thoughts on lock files for Ansible runs

244 views
Skip to first unread message

Adam Kosmin

unread,
Jun 10, 2015, 10:56:56 AM6/10/15
to ansible...@googlegroups.com
Greets,

I'm coming into Ansible from a Puppet background and have questions with regard to whether or not the idea of "lock files" is even appropriate. As I'm sure many here know, the puppet agent handled creating this file in order to avoid multiple overlapping runs. Of course, that's a completely different model (client/server) but I'd be really interested to hear back from this community on this topic. Given that Ansible is essentially just firing out commands over ssh in a serial fashion, I personally see no need for lock files. Of course, I could be missing something.....

thoughts, considerations, use cases, and further questions welcome....

Best,
Adam

Brian Coca

unread,
Jun 10, 2015, 10:59:54 AM6/10/15
to ansible...@googlegroups.com
It might make sense in some cases, but in others it is counter productive:

For example, admin A is configuring the tomcat.xml file, admin B is
adding a new dev user, they should not lock each other.
> --
> 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.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9751fb53-cd98-4854-be40-660dbeb85e13%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages