Skip to content

Commit

Permalink
Merge pull request #12 from tokyowizard/ansible-2.3
Browse files Browse the repository at this point in the history
Fix `with_items` for Ansible 2.3 + Update deprecated choice
  • Loading branch information
MiLk authored Jun 25, 2017
2 parents 0655dfb + 7f86469 commit cc2b7c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
name={{ item }}
enablerepo=epel,gf-plus
state=latest
with_items: packages
with_items: "{{ packages }}"
when: ansible_distribution_major_version|int == 6
tags:
- collectd
Expand All @@ -43,7 +43,7 @@
name={{ item }}
enablerepo=epel
state=latest
with_items: packages
with_items: "{{ packages }}"
when: ansible_distribution_major_version|int > 6
tags:
- collectd
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
src=plugin-configs/{{ item }}.conf.j2
dest={{ collectd_d_config_dir }}/{{ item }}.conf
mode=0644
with_items: collectd_plugins
with_items: "{{ collectd_plugins }}"
notify:
- Restart collectd
tags:
Expand Down Expand Up @@ -75,7 +75,7 @@
- name: "Make sure collectd is running"
service: >
name=collectd
state=running
state=started
enabled=yes
runlevel=5
tags:
Expand Down

0 comments on commit cc2b7c6

Please sign in to comment.