- hosts: containers name: Stop mailu tasks: - name: Copy archive ansible.builtin.shell: 'scp -i .ssh/id_rsa333 /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz jaydee@192.168.77.246/share/' ignore_errors: yes when: inventory_hostname in groups['nas']