use list as argument to name instead of with_items

This commit is contained in:
Simon Bruder 2018-10-28 09:59:59 +00:00
parent af4e8b9fd1
commit 2cf8d059b7
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
9 changed files with 74 additions and 83 deletions

View file

@ -1,9 +1,7 @@
---
- name: install base packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- git
- htop
- lm-sensors
@ -11,6 +9,7 @@
- tmux
- vim-nox
- zsh
state: present
- name: set urxvt as default terminal emulator
alternatives:

View file

@ -1,10 +1,9 @@
---
- name: install network manager
apt:
name: "{{ item }}"
state: present
with_items:
name:
- claws-mail
- claws-mail-pgpinline
- claws-mail-pgpmime
- mumble
state: present

View file

@ -1,11 +1,10 @@
---
- name: install design packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- darktable
- fonts-roboto
- fonts-texgyre
- gimp
- inkscape
state: present

View file

@ -1,9 +1,7 @@
---
- name: install media packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- audacious
- audacity
- calibre
@ -17,3 +15,4 @@
- pavucontrol
- pulseaudio
- sidplayfp
state: present

View file

@ -1,11 +1,10 @@
---
- name: install network packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- blueman
- network-manager
- network-manager-gnome
- nmap
- zmap
state: present

View file

@ -1,9 +1,7 @@
---
- name: install office packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- evince
- gscan2pdf
- libreoffice
@ -11,3 +9,4 @@
- libreoffice-l10n-de
- mupdf
- texlive-full
state: present

View file

@ -1,9 +1,7 @@
---
- name: installing tools
apt:
name: "{{ item }}"
state: present
with_items:
name:
- apt-listbugs
- arandr
- atool
@ -23,3 +21,4 @@
- thunar
- xbacklight
- xinput
state: present

View file

@ -1,8 +1,7 @@
---
- name: install web packages
apt:
name: "{{ item }}"
state: present
with_items:
name:
- aria2
- chromium
state: present

View file

@ -1,9 +1,8 @@
---
- name: install c libraries
apt:
name: [
libx11-dev,
libxrandr-dev,
libxinerama-dev
]
name:
- libx11-dev
- libxrandr-dev
- libxinerama-dev
state: present