aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation
diff options
context:
space:
mode:
authorqwmd <me@rgoncalves.se>2020-12-26 11:14:55 +0100
committerqwmd <me@rgoncalves.se>2020-12-26 11:14:55 +0100
commit5f6043cf14f34db40d350188ae40b7e7f7a40b81 (patch)
treec01947b5d56dffbcd380308686f1a7dda3352d6d /roles/workstation
parent01fb0f69f89aedbd745d12862ec0acda7a4a0aa0 (diff)
downloadinfrastructure-5f6043cf14f34db40d350188ae40b7e7f7a40b81.tar.gz
Add extra init role for workstation
Diffstat (limited to 'roles/workstation')
-rw-r--r--roles/workstation/tasks/main.yml31
-rw-r--r--roles/workstation/vars/main.yml8
2 files changed, 39 insertions, 0 deletions
diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml
new file mode 100644
index 0000000..f9c2852
--- /dev/null
+++ b/roles/workstation/tasks/main.yml
@@ -0,0 +1,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
diff --git a/roles/workstation/vars/main.yml b/roles/workstation/vars/main.yml
new file mode 100644
index 0000000..6f19118
--- /dev/null
+++ b/roles/workstation/vars/main.yml
@@ -0,0 +1,8 @@
+
+# roles/workstation/vars/main.yml
+#
+
+---
+
+workstation_git_root: git@10.10.0.62:/data/git
+workstation_dotfiles_dir: ~/.dotfiles.d
remember that computers suck.