Public bug reported: When using ansible on 20.04, package installation via apt fail.
Consider the following playbook: #!/usr/bin/env ansible-playbook # --- - name: Install packages hosts: localhost tasks: - name: install apt packages apt: pkg: - git update_cache: no cache_valid_time: 3600 become: true This playbook fails with: ansible-playbook apt.yml PLAY [Install packages] ****************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************* ok: [localhost] TASK [install apt packages] ************************************************************************************************** fatal: [localhost]: FAILED! => { "changed": false } MSG: <class 'apt_pkg.Cache'> returned a result with an error set PLAY RECAP ******************************************************************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 ** Affects: ansible (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874195 Title: ansible is not able to install packages via apt on 20.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1874195/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs