refactor: use list, not loop for dnf/apt

master
neingeist 6 years ago
parent e73e12a712
commit af296a9857

@ -1,7 +1,7 @@
---
- name: "install etckeeper (fedora)"
dnf: name={{ item }} state=present
with_items:
dnf:
name:
- git
- findutils
- hostname
@ -9,8 +9,8 @@
- etckeeper
when: ansible_distribution == 'Fedora'
- name: "install etckeeper (debian)"
apt: name={{ item }} state=present
with_items:
apt:
name:
- git
- etckeeper
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

Loading…
Cancel
Save