Fix deprecation warnings when using yum/apt with loops

master
karthikbeam 2019-08-15 11:12:09 +08:00 committed by GitHub
parent 8a81cc8e11
commit f60f80addc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -3,13 +3,11 @@
include_vars: "{{ ansible_os_family }}.yml"
- name: Install required packages for munin (RedHat).
yum: "name={{ item }} state=present"
with_items: "{{ munin_packages }}"
yum: "name={{ munin_packages }} state=present"
when: ansible_os_family == 'RedHat'
- name: Install required packages for munin (Debian).
apt: "name={{ item }} state=present"
with_items: "{{ munin_packages }}"
apt: "name={{ munin_packages }} state=present"
when: ansible_os_family == 'Debian'
- name: Copy munin configurations.