diff options
author | mail_redacted_for_web | 2022-03-21 11:21:28 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2022-03-21 11:21:28 +0100 |
commit | 1475a69efda4e05b559d7868020f3c0d0f599cb4 (patch) | |
tree | 3bd39aca57d7d75381c16e4afe6985e899429ce5 /distrib.yml | |
parent | 1181acc15de33c7ccc30404054ef0bffede47554 (diff) | |
download | dotfiles-1475a69efda4e05b559d7868020f3c0d0f599cb4.tar.bz2 |
distribution mechanism, more targets in make
Diffstat (limited to 'distrib.yml')
-rw-r--r-- | distrib.yml | 24 |
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" |