Good I'm afraid I can't help you in your specific case - you're posting on issues that aren't relevant and without full detail. The retries/until loop will help a lot, but you also need to work out what's happening with your permissions, and be aware that many of these issues are occurring due to processes which are happening in the background. The behaviour is shaky, a proper solution would be nice.įrom the sounds of things, your issue may be down to several factors. Running your playbook with -vvvv may give you more of a clue on what's happening. Ultimately this issue occurs because another apt process is running, or because you don't have permission to run the apt commands as the user you're running the playbook actions as (either via sudo ansible-playbook, or using a become: yes stanza of some description). Sometimes a reboot works, sometimes I need to set become_user: root, sometimes become: yes is enough. Quoting all for your solutions, unfortunately, nothing worked in my case (ansible 2.8, Ubuntu 20.04).Įven the "retries"/"until" method linked above? Hmm. Name: unattended-upgrades selection: hold name: Prevent unattended upgrades from being installed dpkg_selections: ![]() ![]() name: Uninstall unattended upgrades apt: ![]() Ok: => " enabled: no masked: yes with_items: Task path: /Users/antoniocarlos/code/xxxxxxx/xxxxxxxx/roles/apt/tasks/main.yml:61
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |