refactor: use list, not loop for dnf/apt
This commit is contained in:
parent
e73e12a712
commit
af296a9857
1 changed files with 11 additions and 11 deletions
|
@ -1,18 +1,18 @@
|
|||
---
|
||||
- name: "install etckeeper (fedora)"
|
||||
dnf: name={{ item }} state=present
|
||||
with_items:
|
||||
- git
|
||||
- findutils
|
||||
- hostname
|
||||
- mailx
|
||||
- etckeeper
|
||||
dnf:
|
||||
name:
|
||||
- git
|
||||
- findutils
|
||||
- hostname
|
||||
- mailx
|
||||
- etckeeper
|
||||
when: ansible_distribution == 'Fedora'
|
||||
- name: "install etckeeper (debian)"
|
||||
apt: name={{ item }} state=present
|
||||
with_items:
|
||||
- git
|
||||
- etckeeper
|
||||
apt:
|
||||
name:
|
||||
- git
|
||||
- etckeeper
|
||||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue