ansible/playbooks/test.yaml

7 lines
283 B
YAML
Raw Normal View History

2023-08-28 11:16:49 +02:00
- hosts: containers
name: Stop mailu
tasks:
- name: Copy archive
2023-08-28 11:24:55 +02:00
ansible.builtin.shell: 'scp -i .ssh/id_rsa333 /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz jaydee@192.168.77.246/share/'
2023-08-28 11:16:49 +02:00
ignore_errors: yes
when: inventory_hostname in groups['nas']