Hello everyone,
We are trying to create objects and add these object to a spesific group in our management servers with Ansible using web service rest API functions. We have two management server and want to do same operation on both servers. Looping the management IP addresses so the automation starts with loop's first member, after finishing the task for it then proceed to the next one to execute the same tasks. The objects we are trying to add are not exist in management servers by the way. We are creating from scratch.
We have some problem at this point.
Scenario1 : loop first member: MGMT1, second member MGMT2
Scenario2 : loop first member: MGMT2, second member MGMT1
In scenario1, for the MGMT1 all tasks executed successfully, but in MGMT2 we are having validation warning and errors like below.
In scenario2, for the MGMT2 is succesfull, but this time we are seeing the same validation warning and errors for MGMT1.
"code": "err_validation_failed",
"message": "Validation failed with 1 warning and 1 error",
"warnings": [
{
"message": "Multiple objects have the same IP address 19.19.19.19"
}
],
"errors": [
{
"message": "More than one object named '19.19.19.19' exists."
}
There is no object the IP or name 19.19.19.19 on both management servers. Do you have any idea why we are getting this validation warning and errors?