--- - name: add repository key copy: src: repo.gpg dest: /etc/apt/trusted.gpg.d/aptly.gpg notify: update apt cache - name: add repository entry copy: content: | deb http://repo.aptly.info/ squeeze main dest: /etc/apt/sources.list.d/aptly.list notify: update apt cache - name: update apt cache meta: flush_handlers