On 26.04.16 17:45 Robert Glenn wrote:

> My understanding would be the latter: that running the same playbook on the 
> original servers would leave them unchanged. This would be consistent with 
> the notion of idempotency, but might not be the desired 'outcome'..

>From https://docs.ansible.com/ansible/apt_module.html:

- apt: upgrade=dist update_cache=yes

upgrade:
If yes or safe, performs an aptitude safe-upgrade.
If full, performs an aptitude full-upgrade.
If dist, performs an apt-get dist-upgrade.
Note: This does not upgrade a specific package, use state=latest for that.

So I would say depending on what option you choose, all installed
packages on your servers would be upgrade to the latest version with
upgrade=full or maybe upgrade=safe. Keep in mind that this would not
install the same set of packages on your servers, as only the one
where e.g. apache is installed are receiving updates for apache.

Idempotency in this case means that you can run this command multiple
times and (if no updates are released in the meantime and you refresh
the cache) your systems should be up to date no matter even after the
first time.

Johannes

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/57210547.20004%40ojkastl.de.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to