ansible/playbooks/test.yaml
2023-08-28 11:24:55 +02:00

7 lines
283 B
YAML

- 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']