git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/distrib.yml
diff options
context:
space:
mode:
Diffstat (limited to 'distrib.yml')
-rw-r--r--distrib.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/distrib.yml b/distrib.yml
new file mode 100644
index 0000000..aa9565a
--- /dev/null
+++ b/distrib.yml
@@ -0,0 +1,24 @@
+---
+- 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"
+ dest: "~/dotfiles.tar.xz"
+ mode: "0640"
+ - name: "Unpack dotfiles.tar.xz"
+ unarchive:
+ dest: "~/"
+ src: "dotfiles.tar.xz"
+ remote_src: "yes"
+ list_files: "yes"
+ - name: "Remove tarball on remote"
+ file:
+ path: "~/dotfiles.tar.xz"
+ state: "absent"
+ tags:
+ - "never"
+ - "removal"