# This is installed before updating sources lists, so that if they # happen to use https URLs the package lists can still be update. - name: install apt-transport-https apt: name: apt-transport-https - name: configure main sources.list template: src: sources.list.j2 dest: /etc/apt/sources.list - name: additional sources.list.d/* with_items: "{{ sources_lists }}" apt_repository: repo: "{{ item.repo }}" update_cache: no - name: update package lists apt: update_cache: yes cache_valid_time: 0 - name: dist-upgrade so everything is up to date apt: upgrade: dist