Closed SpikePy closed 3 years ago
Hi @SpikePy, thank for reporting this.
Helm provides a plugin called helm-diff
that would be handy to address this problem. However since it's a plugin, we're not sure if it's a good idea to rely on it. On the other side, we don't feel like it's a good idea to rewrite it internally just for this case. @fabianvf how do you feel about that?
resolved_by_pr #332
@SpikePy Could you please check if #332 works for you and let us know? Thanks.
@Akasurde Just had time and the opportunity to test it and it worked like a charm. showed changed state if i changed the charts version tag and if I re-rolled it with the same module parameters without any changes it shows "ok" 👍
SUMMARY
When using
values_files: /tmp/{{ role_name }}/values_rabbitmq.yml
in the new helm module ansible always shows a changed state after running it (even though the file has the same content), but if I userelease_values: "{{ lookup('template', 'values_rabbitmq.yml') | from_yaml }}"
with the same content it just shows ok and only shows change when something actually changed in the given values.ISSUE TYPE
COMPONENT NAME
community.kubernetes.helm
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Linux work 5.8.0-3-amd64 #1 SMP Debian 5.8.14-1 (2020-10-10) x86_64 GNU/Linux
STEPS TO REPRODUCE
EXPECTED RESULTS
Ansible should show a changed state only if there were changes in the configuration-/values-file
ACTUAL RESULTS
ansible always shows changed state