summaryrefslogtreecommitdiff
path: root/ansible/roles/liw/tasks/main.yml
blob: 99f1b479d6ca45d8ad67ee67e6bed499cd8c47f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- name: "install git"
  apt:
    name: git

- name: "configure liw account"
  shell: |
    if ! [ -e /home/liw/.config ]; then sudo -u liw -i git clone git://git.liw.fi/liw-dot-files; fi
    sudo -u liw -i bash -c "pwd &&  ./liw-dot-files/make-symlinks"
    sudo -u liw -i bash -c "ln -nsf liw-dot-files/gitconfig-exolobe1 .gitconfig"

- name: "create ~liw/src and ~liw/cargo"
  file:
    state: directory
    name: "/home/liw/{{ item }}"
    owner: liw
    group: liw
  with_list:
    - src
    - cargo