--- - name: Configure package source template: src: "sources.list" dest: "/etc/apt/sources.{{ ansible_distribution_name }}.list" owner: root group: root mode: "u=rw,g=r,o=r" - name: Update packages and install common packages apt: name: - acl - aptitude - apt-transport-https - buffer - ca-certificates - cron - curl - dirmngr - dnsutils - git - gnupg2 - htop - python - python-pip - software-properties-common - tmux - ufw - vim - wget - zsh state: present allow_unauthenticated: no update_cache: yes cache_valid_time: 3600 autoclean: yes autoremove: yes