forked from infra/ansible
common: use list instead of with_items
This commit is contained in:
parent
364d9428d8
commit
7de38a4602
@ -1,25 +1,25 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install misc software
|
- name: Install misc software
|
||||||
apt: name={{ item }}
|
apt:
|
||||||
with_items:
|
name:
|
||||||
- dnsutils
|
- dnsutils
|
||||||
- htop
|
- htop
|
||||||
- less
|
- less
|
||||||
- net-tools
|
- net-tools
|
||||||
- openssl
|
- openssl
|
||||||
- psmisc
|
- psmisc
|
||||||
- pydf
|
- pydf
|
||||||
- rsync
|
- rsync
|
||||||
- sudo
|
- sudo
|
||||||
- vim-nox
|
- vim-nox
|
||||||
- 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"
|
||||||
|
|
||||||
- name: Configure misc software
|
- name: Configure misc software
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install misc software
|
- name: Install misc software
|
||||||
pkgng: name={{ item }}
|
pkgng:
|
||||||
with_items:
|
name:
|
||||||
- vim-lite
|
- vim-lite
|
||||||
- htop
|
- htop
|
||||||
- zsh
|
- zsh
|
||||||
|
|
||||||
- name: Configure misc software
|
- name: Configure misc software
|
||||||
copy: src={{ item.src }} dest={{ item.dest }}
|
copy: src={{ item.src }} dest={{ item.dest }}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install misc software
|
- name: Install misc software
|
||||||
apt: name={{ item }}
|
apt:
|
||||||
with_items:
|
name:
|
||||||
- dnsutils
|
- dnsutils
|
||||||
- htop
|
- htop
|
||||||
- ipmitool
|
- ipmitool
|
||||||
- less
|
- less
|
||||||
- rsync
|
- rsync
|
||||||
- vim-nox
|
- vim-nox
|
||||||
- zsh
|
- zsh
|
||||||
|
|
||||||
- name: Configure misc software
|
- name: Configure misc software
|
||||||
copy: src={{ item.src }} dest={{ item.dest }}
|
copy: src={{ item.src }} dest={{ item.dest }}
|
||||||
|
Loading…
Reference in New Issue
Block a user