Skip to content

ansible: allow updating when installing packages

Eric Engestrom requested to merge eric/ci-tron:ansible-install-allow-update into main

The default is to skip already-installed packages; with state: latest ansible will also make sure the installed version is the latest version.

Relevant to recent issues, this change this (with !793 to see what's going on):

TASK [sshd : Installing ssh] ***************************************************
ok: [localhost] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []}

into this:

TASK [sshd : Installing ssh] ***************************************************
changed: [localhost] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: openssh-clients-9.6p1-1.fc40.4.aarch64", "Installed: openssh-server-9.6p1-1.fc40.4.aarch64", "Installed: shadow-utils-2:4.15.1-3.fc40.aarch64", "Installed: sssd-client-2.9.5-1.fc40.aarch64", "Installed: openssh-9.6p1-1.fc40.4.aarch64", "Installed: libsss_idmap-2.9.5-1.fc40.aarch64", "Installed: libsss_nss_idmap-2.9.5-1.fc40.aarch64", "Removed: libsss_idmap-2.9.4-7.fc40.aarch64", "Removed: libsss_nss_idmap-2.9.4-7.fc40.aarch64", "Removed: openssh-9.6p1-1.fc40.2.aarch64", "Removed: openssh-clients-9.6p1-1.fc40.2.aarch64", "Removed: openssh-server-9.6p1-1.fc40.2.aarch64", "Removed: shadow-utils-2:4.15.1-2.fc40.aarch64", "Removed: sssd-client-2.9.4-7.fc40.aarch64"]}

Merge request reports