29.09.2014 · Currently no obvious ansible way to mark a package as held. Workaround: use shell to run "apt-mark hold ". But this will be run on every ansible run, and relies on apt-mark itself being idempotent. Contributor bobobox commented on Nov 3, 2014
29.09.2014 · Arguably, whenever you use ansible to install a specific version of a package then it should be held (and implicitly unheld if you specify "state=latest"). ansible 1.4 doesn't appear to do that, but maybe it's changed in later version. Actual Results: Currently no obvious ansible way to mark a package as held.
Sep 20, 2020 · Show activity on this post. I'm writing my k8s upgrade ansible playbook, and within that I need to do apt-mark unhold kubeadm. Now, I am trying to avoid using the ansible command or shell module to call apt if possible, but the apt hold/unhold command does not seem to be supported by neither package nor apt modules.
19.09.2020 · Show activity on this post. I'm writing my k8s upgrade ansible playbook, and within that I need to do apt-mark unhold kubeadm. Now, I am trying to avoid using the ansible command or shell module to call apt if possible, but the apt hold/unhold command does not seem to be supported by neither package nor apt modules.
Sep 29, 2014 · ansible 1.4 doesn't appear to do that, but maybe it's changed in later version. Actual Results: Currently no obvious ansible way to mark a package as held. Workaround: use shell to run "apt-mark hold ". But this will be run on every ansible run, and relies on apt-mark itself being idempotent.
This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name apt even without specifying ...
This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name apt even without specifying the collections: keyword. However, we recommend you use the FQCN for easy linking to the module documentation and to avoid conflicting with other collections that may have the same module name.
debops.apt_mark¶. The debops.apt_mark Ansible role can be used to set the desired state of APT packages using apt-mark(8) command. It might be useful if a new Debian/Ubuntu install results in many packages which should be installed are marked for autoremoval, or if you want to hold certain APT packages in their current state.
Sep 29, 2014 · Currently no obvious ansible way to mark a package as held. Workaround: use shell to run "apt-mark hold ". But this will be run on every ansible run, and relies on apt-mark itself being idempotent. Contributor bobobox commented on Nov 3, 2014
08.07.2014 · Currently no obvious ansible way to mark a package as held. Workaround: use shell to run "apt-mark hold ". But this will be run on every ansible run, and relies on apt-mark itself being idempotent. jimi-c added P4 labels on Jul 8, 2014 sidharthsurana commented on Jul 20, 2014