1
0
forked from infra/ansible

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,8 +1,8 @@
--- ---
- name: Install misc software - name: Install misc software
apt: name={{ item }} apt:
with_items: name:
- dnsutils - dnsutils
- htop - htop
- less - less
@ -16,8 +16,8 @@
- zsh - zsh
- name: Install software on KVM VMs - name: Install software on KVM VMs
apt: name={{ item }} apt:
with_items: name:
- acpid - acpid
- qemu-guest-agent - qemu-guest-agent
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"

View File

@ -1,8 +1,8 @@
--- ---
- name: Install misc software - name: Install misc software
pkgng: name={{ item }} pkgng:
with_items: name:
- vim-lite - vim-lite
- htop - htop
- zsh - zsh

View File

@ -1,8 +1,8 @@
--- ---
- name: Install misc software - name: Install misc software
apt: name={{ item }} apt:
with_items: name:
- dnsutils - dnsutils
- htop - htop
- ipmitool - ipmitool