--- - name: Install GnuPG (to manage the APT keystore) become: true apt: name: gnupg2 state: latest - name: Install common CA certificates become: true apt: name: ca-certificates state: latest - name: Ensure that APT can use HTTPS repositories become: true apt: name: apt-transport-https state: latest ...