aboutsummaryrefslogtreecommitdiffstats
path: root/roles/tools/tasks/main.yml
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-18 09:41:20 +0100
committerbinary <me@rgoncalves.se>2020-11-18 09:41:20 +0100
commit680d88cdd468e7bed9a46f2550cac0e59f835cfa (patch)
tree4cffc26ce1a4a940c79324dd1637067943681b48 /roles/tools/tasks/main.yml
parent874a27a2e86b82bc381bc7270b2bec3d9dfb7114 (diff)
downloadinfrastructure-680d88cdd468e7bed9a46f2550cac0e59f835cfa.tar.gz
Refactor package installation in tools role
Diffstat (limited to 'roles/tools/tasks/main.yml')
-rw-r--r--roles/tools/tasks/main.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml
new file mode 100644
index 0000000..0abd228
--- /dev/null
+++ b/roles/tools/tasks/main.yml
@@ -0,0 +1,39 @@
+
+# tools ~~ roles/tools/tasks/main.yml
+# see : https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/tools/tasks/main.yml
+
+---
+
+- set_fact:
+ packages: "{{ packages[os_distribution] }}"
+
+- name: install sysadmin tools
+ package: state=present name="{{ item }}"
+ loop:
+ - tmux
+ - htop
+ #failed_when: false
+ ignore_errors: true
+
+- name: install per distribution correspond tools
+ package: state=present name="{{ item }}"
+ loop:
+ - "{{ packages.sshfs }}"
+ - "{{ packages.wireguard }}"
+ ignore_errors: true
+
+- name: install misc utils
+ package: state=present name="{{ item }}"
+ loop:
+ - zsh
+ - neovim
+ - wget
+ - curl
+ - git
+ #failed_when: false
+ ignore_errors: true
+
+- name: install scripts repository
+ git:
+ repo: "https://gitlab.com/rgoncalves.se/infrastructure/infrastructure-scripts"
+ dest: /data/scripts
remember that computers suck.