From e1c283d6cc3f7b6420982fbfb50585a208faa47b Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 28 Aug 2023 11:16:49 +0200 Subject: [PATCH] upt playbook --- playbooks/test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 playbooks/test.yaml diff --git a/playbooks/test.yaml b/playbooks/test.yaml new file mode 100644 index 0000000..6b79b5e --- /dev/null +++ b/playbooks/test.yaml @@ -0,0 +1,7 @@ +- hosts: containers + name: Stop mailu + tasks: + - name: Copy archive + ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz jaydee@192.168.77.246/share/' + ignore_errors: yes + when: inventory_hostname in groups['nas'] \ No newline at end of file