Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

template task breaks caching system #230

Open
tsuchm opened this issue Jul 4, 2020 · 1 comment
Open

template task breaks caching system #230

tsuchm opened this issue Jul 4, 2020 · 1 comment
Labels
bug Something isn't working UX Improve user experience

Comments

@tsuchm
Copy link

tsuchm commented Jul 4, 2020

When using template task

- name: Put preferences for backported packages.
  template:
    src: preferences.j2
    dest: /etc/apt/preferences.d/backports
    owner: root
    group: root
    mode: 0644

with the following template

Package: *
Pin: release n={{ansible_distribution_release}}-backports
Pin-Priority: 500

ansible-bender judges that the cached image is modified by this task, even if ansible_distribution_relase is not changed.

This behavior causes unnecessary actions following template task.

@TomasTomecek
Copy link
Collaborator

Thanks for opening this issue.

This is interesting, I'd need to dig in and see what's happening.

@TomasTomecek TomasTomecek added bug Something isn't working UX Improve user experience labels Jul 8, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working UX Improve user experience
Projects
None yet
Development

No branches or pull requests

2 participants