blob: aa9565a506a7d9579806f524bcb062204a6cbd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"
|