From 37b208966573898f3c66e12e70091508b9e84258 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 11 Mar 2021 15:45:49 +0100 Subject: Make packages installation inventoy agnostic. --- roles/tools/tasks/main.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) (limited to 'roles/tools/tasks/main.yml') diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 5e8dada..84fe4cb 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -4,27 +4,13 @@ --- -- set_fact: - packages: "{{ packages[ansible_distribution | lower] }}" - - name: install per distribution correspond tools - package: state=present name="{{ item }}" - loop: - - "{{ packages.sshfs }}" - - "{{ packages.wireguard }}" - - "{{ packages.extra if packages.extra is defined }}" - ignore_errors: true + package: + state: present + name: "{{ tools_pkgs[ansible_distribution | lower] }}" - name: install global utils - package: name="{{ item }}" state=present - loop: - - curl - - figlet - - git - - htop - - neovim - - tmux - - wget - - zsh - ignore_errors: true + package: + name: "{{ tools_pkgs[common] }}" + state: present -- cgit v1.2.3