-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync_plans role not idempotent #1804
Comments
Can you post the --diff output? I bet it's the way the date is stored (iirc that recently changed) |
Here's the --diff output:
Here's also -v output just in case:
|
Can you try using |
Yes, that works, thanks! |
Should this become "compare dates as dates, not strings"? |
I tried the following data:
I used |
@itcultus curious, can you show the output of your playbook with |
From the output it looks like it before saving the sync plan, date is changed to UTC (by the module or Satellite itself) so, if I use UTC it will be OK. |
Mhh, yeah, it seems it's saved/shown as UTC (+0000) by Satellite. The module just sees that all as strings (which is why this problem exists in the first place, otherwise the dates would compare as equal just fine). |
I just did a new run with the dates in UTC and it's OK now. Maybe an update to the documentation will be helpful. |
This simple playbooks reports changed on every run (tested against Satellite 6.16):
Since no passwords are involved here perhaps it would be possible to make this idempotent. Thanks.
The text was updated successfully, but these errors were encountered: