how i can make the task if i want to run the task if only the variabiles is changed? with fact? this task is a part of a playbook who run several time in a day
someone can help me??
There’s a lot of stuff in the AWS modules that “changes” for no apparent reason, and where no actual change has occurred. I have given up relying on it, and explicitly test items I think may have changed.
It would be really nice if all the AWS modules could accurately tell whether something had actually changed. ec2_group is especially bad.
You seed that you needed to store fact between runs, so if that means between different or the same playbook run the most logic way to do that is with custom facts.
It you read the link you see that custom facts is a json, ini or a executable returning json that set the variables/facts you need.