Hello,
I noticed that if I run the role in order to add many instances of 389ds server, the handlers doesn't keep the right dirsrv_serverid value, it keeps only the last one in the loop.
Then, at the end of "tst-A" installation the handler of dirsrv restart runs on 'tst-B' value of dirsrv_serverid.
To work correctly I must add the dirsrv_serverid value on the name of the handler.
I don't know why, I suppose is something related how Ansible manages the variables in loop. Maybe this is not the better way to fix this, but it works well for me.
Hello, I noticed that if I run the role in order to add many instances of 389ds server, the handlers doesn't keep the right
dirsrv_serverid
value, it keeps only the last one in the loop.For instance, if my task is:
where the inventory is:
Then, at the end of "tst-A" installation the handler of
dirsrv restart
runs on 'tst-B' value ofdirsrv_serverid
. To work correctly I must add thedirsrv_serverid
value on the name of the handler.I don't know why, I suppose is something related how Ansible manages the variables in loop. Maybe this is not the better way to fix this, but it works well for me.