git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/distrib.yml
blob: a4f722e259b75cdf554dae50473700420687b3bf (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
25
26
27
28
29
30
---
- 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"
      tags:
        - "remote"
        - "all"
    - name: "Unpack dotfiles.tar.xz"
      unarchive:
        dest: "~/"
        src: "dotfiles.tar.xz"
        remote_src: "yes"
        list_files: "yes"
      tags:
        - "unpack"
        - "all"
    - name: "Remove tarball on remote"
      file:
        path: "~/dotfiles.tar.xz"
        state: "absent"
      tags:
        - "never"
        - "removal"