aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/main.yml
blob: f9c2852a1bc6a3c7372f590b1a8f4e9cced526c5 (plain) (blame)
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
31

# workstation ~~ roles/workstation/tasks/main.yml
# init workstation with packages and dotfiles

---

- name: select correct distribution packages
  set_fact:
    packages: "{{ packages[ansible_distribution | lower] }}"

- name: download development packages
  package: name="{{ packages[item] }}" state=present
  loop:
    - neovim
    #- qutebrowser
    #- vlc
    #- feh
  ignore_errors: true
  become: true

- name: ensure dotfiles local directory exists
  file:
    path: "{{ workstation_dotfiles_dir }}"
    state: directory
    mode: 0755

- name: download dotfiles configuration repository
  git: 
    repo: "{{ workstation_git_root }}/dot-config"
    dest: "{{ workstation_dotfiles_dir }}/dot-config"
    bare: true
remember that computers suck.