From 1b12b54a8d36e4688b5da359ed64f6d1b90c56a3 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 8 Oct 2020 22:30:36 +0200 Subject: [PATCH] common: use list instead of with_items --- roles/common/tasks/main.yml | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 295d1ce..f40c4f4 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,29 +1,29 @@ --- - name: Install misc software - apt: name={{ item }} - with_items: - - ca-certificates - - dnsutils - - git - - htop - - less - - mtr-tiny - - net-tools - - openssl - - psmisc - - pydf - - rsync - - sudo - - vim-nox - - zsh - - fail2ban + apt: + name: + - ca-certificates + - dnsutils + - git + - htop + - less + - mtr-tiny + - net-tools + - openssl + - psmisc + - pydf + - rsync + - sudo + - vim-nox + - zsh + - fail2ban - 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