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 - name: install base packages
apt: apt:
name: "{{ item }}" name:
state: present
with_items:
- git - git
- htop - htop
- lm-sensors - lm-sensors
@ -11,6 +9,7 @@
- tmux - tmux
- vim-nox - vim-nox
- zsh - zsh
state: present
- 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:
state: present
with_items:
- claws-mail - claws-mail
- claws-mail-pgpinline - claws-mail-pgpinline
- claws-mail-pgpmime - claws-mail-pgpmime
- mumble - mumble
state: present

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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