From f3ab61b8ff18244c45a89e72db1db67a37073d22 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 3 Jul 2023 10:17:52 +0200 Subject: [PATCH] [TIDY] Refactor apt commands --- tasks/devel-Debian.yml | 6 ++---- tasks/essentials-Debian.yml | 8 +++----- tasks/tools-Debian.yml | 6 ++---- tasks/usertools-Debian.yml | 6 ++---- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/tasks/devel-Debian.yml b/tasks/devel-Debian.yml index 3f7fee5..73204af 100644 --- a/tasks/devel-Debian.yml +++ b/tasks/devel-Debian.yml @@ -75,11 +75,9 @@ - name: Devel - Golang - Install developer tools become: true ansible.builtin.apt: - name: "{{ packages }}" - state: present - vars: - packages: + name: - golang + state: present diff: false # Dev Env - LaTeX Distribution diff --git a/tasks/essentials-Debian.yml b/tasks/essentials-Debian.yml index 027642a..451a8b9 100644 --- a/tasks/essentials-Debian.yml +++ b/tasks/essentials-Debian.yml @@ -4,11 +4,7 @@ - name: Essentials - Install essential utilities become: true ansible.builtin.apt: - name: "{{ packages }}" - state: present - update_cache: true - vars: - packages: + name: - git - curl - wget @@ -16,4 +12,6 @@ - vim - tmux - python3-pip + state: present + update_cache: true diff: false diff --git a/tasks/tools-Debian.yml b/tasks/tools-Debian.yml index e16da83..522f652 100644 --- a/tasks/tools-Debian.yml +++ b/tasks/tools-Debian.yml @@ -5,12 +5,10 @@ - name: Tools - Install basic utilities become: true ansible.builtin.apt: - name: "{{ packages }}" - state: present - vars: - packages: + name: - rsync - dnsutils - htop - unzip + state: present diff: false diff --git a/tasks/usertools-Debian.yml b/tasks/usertools-Debian.yml index d61847e..98770e9 100644 --- a/tasks/usertools-Debian.yml +++ b/tasks/usertools-Debian.yml @@ -4,13 +4,11 @@ - name: Usertools - Install user's working utilities become: true ansible.builtin.apt: - name: "{{ packages }}" - state: present - vars: - packages: + name: - nmap - rsync - icdiff - iftop - ansible + state: present diff: false