From 2891498a5cfe17c397288c658ab3fa98cc82dda6 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Wed, 29 Jun 2022 14:33:23 +0200 Subject: separation into plays-per-host(s) --- distrib.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/distrib.yml b/distrib.yml index d41dca6..0b1ed89 100644 --- a/distrib.yml +++ b/distrib.yml @@ -1,6 +1,6 @@ --- -- hosts: "{{ lookup('env', 'DFDISTRIB') }}" - gather_facts: false +- hosts: "localhost" + connection: "local" vars: ansible_python_interpreter: "auto_silent" tasks: @@ -55,7 +55,11 @@ - "tmux-yank/yank.tmux" format: "xz" dest: "~/dotfiles.tar.xz" - run_once: true +- hosts: "{{ lookup('env', 'DFDISTRIB') }}" + gather_facts: false + vars: + ansible_python_interpreter: "auto_silent" + tasks: - name: "Copy dotfiles.tar.xz to remote" copy: src: "~/dotfiles.tar.xz" @@ -80,6 +84,11 @@ tags: - "removal" - "all" +- hosts: "localhost" + connection: "local" + vars: + ansible_python_interpreter: "auto_silent" + tasks: - name: "Remove source tarball" delegate_to: "localhost" connection: "local" -- cgit v1.2.3