common: use list instead of with_items

This commit is contained in:
Markus 2020-11-13 17:39:47 +01:00
parent 364d9428d8
commit 7de38a4602
3 changed files with 31 additions and 31 deletions

View File

@ -1,25 +1,25 @@
---
- name: Install misc software
apt: name={{ item }}
with_items:
- dnsutils
- htop
- less
- net-tools
- openssl
- psmisc
- pydf
- rsync
- sudo
- vim-nox
- zsh
apt:
name:
- dnsutils
- htop
- less
- net-tools
- openssl
- psmisc
- pydf
- rsync
- sudo
- vim-nox
- zsh
- name: Install software on KVM VMs
apt: name={{ item }}
with_items:
- acpid
- qemu-guest-agent
apt:
name:
- acpid
- qemu-guest-agent
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
- name: Configure misc software

View File

@ -1,11 +1,11 @@
---
- name: Install misc software
pkgng: name={{ item }}
with_items:
- vim-lite
- htop
- zsh
pkgng:
name:
- vim-lite
- htop
- zsh
- name: Configure misc software
copy: src={{ item.src }} dest={{ item.dest }}

View File

@ -1,15 +1,15 @@
---
- name: Install misc software
apt: name={{ item }}
with_items:
- dnsutils
- htop
- ipmitool
- less
- rsync
- vim-nox
- zsh
apt:
name:
- dnsutils
- htop
- ipmitool
- less
- rsync
- vim-nox
- zsh
- name: Configure misc software
copy: src={{ item.src }} dest={{ item.dest }}