[TIDY] Refactor apt commands

This commit is contained in:
Jannik Beyerstedt 2023-07-03 10:17:52 +02:00
parent f380e0ba29
commit f3ab61b8ff
4 changed files with 9 additions and 17 deletions

View file

@ -75,11 +75,9 @@
- name: Devel - Golang - Install developer tools - name: Devel - Golang - Install developer tools
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ packages }}" name:
state: present
vars:
packages:
- golang - golang
state: present
diff: false diff: false
# Dev Env - LaTeX Distribution # Dev Env - LaTeX Distribution

View file

@ -4,11 +4,7 @@
- name: Essentials - Install essential utilities - name: Essentials - Install essential utilities
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ packages }}" name:
state: present
update_cache: true
vars:
packages:
- git - git
- curl - curl
- wget - wget
@ -16,4 +12,6 @@
- vim - vim
- tmux - tmux
- python3-pip - python3-pip
state: present
update_cache: true
diff: false diff: false

View file

@ -5,12 +5,10 @@
- name: Tools - Install basic utilities - name: Tools - Install basic utilities
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ packages }}" name:
state: present
vars:
packages:
- rsync - rsync
- dnsutils - dnsutils
- htop - htop
- unzip - unzip
state: present
diff: false diff: false

View file

@ -4,13 +4,11 @@
- name: Usertools - Install user's working utilities - name: Usertools - Install user's working utilities
become: true become: true
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ packages }}" name:
state: present
vars:
packages:
- nmap - nmap
- rsync - rsync
- icdiff - icdiff
- iftop - iftop
- ansible - ansible
state: present
diff: false diff: false