andrewrothstein / ansible-anaconda

Ansible role for installing Anaconda
MIT License
47 stars 42 forks source link

Do not report update task as changed #13

Closed kostyrev closed 7 years ago

kostyrev commented 7 years ago

Current behavior fails idempotency check. At the same time I'd like to be able to update packages with the role for I use it in packer. Please consider adding this.

andrewrothstein commented 7 years ago

If idempotency is what you're after than I recommend setting anaconda_pkg_update: False Without an idempotent Ansible conda module this task, in particular, and those like it are all for naught.

If you're building packer images than aren't you starting from a blank slate? An install from a blank slate will likely install updated packages so the fact that it reports (changed) is more likely accurate than not, no?