Merge pull request #11 from karthikbeam/patch-1

Fix deprecation warnings when using yum/apt with loops
master
Jeff Geerling 2019-08-26 10:27:33 -05:00 committed by GitHub
commit 17edd7cf25
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" include_vars: "{{ ansible_os_family }}.yml"
- name: Install required packages for munin (RedHat). - name: Install required packages for munin (RedHat).
yum: "name={{ item }} state=present" yum: "name={{ munin_packages }} state=present"
with_items: "{{ munin_packages }}"
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: Install required packages for munin (Debian). - name: Install required packages for munin (Debian).
apt: "name={{ item }} state=present" apt: "name={{ munin_packages }} state=present"
with_items: "{{ munin_packages }}"
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: Copy munin configurations. - name: Copy munin configurations.