From 332573ae82b9ab65dc3e2df140c1449fe4f81f59 Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 19 Jan 2021 23:05:30 +0100 Subject: Rewrite basic roles with simple syntax --- roles/tools/tasks/main.yml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) (limited to 'roles/tools') diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index fae66c6..5e8dada 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -7,37 +7,24 @@ - set_fact: packages: "{{ packages[ansible_distribution | lower] }}" -- name: install sysadmin tools - package: state=present name="{{ item }}" - loop: - - tmux - - htop - - "{{ ansible_become_method }}" - #failed_when: false - ignore_errors: true - - name: install per distribution correspond tools package: state=present name="{{ item }}" loop: - - "{{ packages.neovim }}" - "{{ packages.sshfs }}" - "{{ packages.wireguard }}" - "{{ packages.extra if packages.extra is defined }}" ignore_errors: true -- name: install misc utils - package: state=present name="{{ item }}" + +- name: install global utils + package: name="{{ item }}" state=present loop: - - figlet - curl - - wget + - figlet - git + - htop + - neovim + - tmux + - wget - zsh - #failed_when: false ignore_errors: true - -- name: install scripts repository - git: - repo: "https://gitlab.com/rgoncalves.se/infrastructure/infrastructure-scripts" - dest: /data/scripts - force: true -- cgit v1.2.3