- name: Copy keys remotely copy: src: 'keys/{{ item.file }}' dest: '/etc/reprepro-gpg-keys/{{ item.file }}' owner: root group: root mode: 0644 loop: '{{ _keys }}' - name: Import gpg keys include_role: name: import-gpg-key vars: gpg_key_id: '{{ item.key_id }}' gpg_key_asc: '/etc/reprepro-gpg-keys/{{ item.file }}' loop: '{{ _keys }}'