Thoughts on lock files for Ansible runs

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

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.