So I have a task that delegates a template deployed to one server to a different server. When this task is run on just a single server I get no errors. However if I try running this delegation task on all the servers (16 servers) it needs to be deployed to in a single play, then it will only succeed on only 50%-80% of the servers. The servers that it fails on are random every time I run the play (in dry mode).
Further, when I run the play on all the servers, a handler belonging to a different task only activates for 50%-80% of the servers it was intended to act upon. I am wondering if ansible is acting to fast and the tasks are running over each other? Anybody got an idea as to what is going on? (I don’t even know where to begin to look)
I could just walk through my hosts file and run the play for each server one by one, but then again, that kind of hamstrings a lot of ansible’s power.