--- - name: install packages apt: name: '{{ packages }}' vars: packages: - aptly - aptly-api tags: aptly - name: copy configuration file copy: content: '{{ aptly_config|to_nice_json }}' dest: /etc/aptly.conf owner: root group: root mode: 0644 tags: aptly