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,16 +1,15 @@
--- ---
- name: install base packages - name: install base packages
apt: apt:
name: "{{ item }}" name:
- git
- htop
- lm-sensors
- rxvt-unicode
- tmux
- vim-nox
- zsh
state: present state: present
with_items:
- git
- htop
- lm-sensors
- rxvt-unicode
- tmux
- vim-nox
- zsh
- name: set urxvt as default terminal emulator - name: set urxvt as default terminal emulator
alternatives: alternatives:

View file

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

View file

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

View file

@ -1,19 +1,18 @@
--- ---
- name: install media packages - name: install media packages
apt: apt:
name: "{{ item }}" name:
- audacious
- audacity
- calibre
- eom
- feedreader
- jpegoptim
- mkvtoolnix
- mkvtoolnix-gui
- mpv
- pasystray
- pavucontrol
- pulseaudio
- sidplayfp
state: present state: present
with_items:
- audacious
- audacity
- calibre
- eom
- feedreader
- jpegoptim
- mkvtoolnix
- mkvtoolnix-gui
- mpv
- pasystray
- pavucontrol
- pulseaudio
- sidplayfp

View file

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

View file

@ -1,13 +1,12 @@
--- ---
- name: install office packages - name: install office packages
apt: apt:
name: "{{ item }}" name:
- evince
- gscan2pdf
- libreoffice
- libreoffice-gtk3
- libreoffice-l10n-de
- mupdf
- texlive-full
state: present state: present
with_items:
- evince
- gscan2pdf
- libreoffice
- libreoffice-gtk3
- libreoffice-l10n-de
- mupdf
- texlive-full

View file

@ -1,25 +1,24 @@
--- ---
- name: installing tools - name: installing tools
apt: apt:
name: "{{ item }}" name:
- apt-listbugs
- arandr
- atool
- bmon
- dnsutils
- httpie
- libnotify-bin
- mtr-tiny
- ncdu
- pass
- qalc
- redshift-gtk
- ripgrep
- rsync
- sqlite3
- strace
- thunar
- xbacklight
- xinput
state: present state: present
with_items:
- apt-listbugs
- arandr
- atool
- bmon
- dnsutils
- httpie
- libnotify-bin
- mtr-tiny
- ncdu
- pass
- qalc
- redshift-gtk
- ripgrep
- rsync
- sqlite3
- strace
- thunar
- xbacklight
- xinput

View file

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

View file

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