Skip to content

Commit

Permalink
Merge pull request #6 from zeelax/fix/ansible-2.1
Browse files Browse the repository at this point in the history
Remove some warnings for Ansible 2.x
  • Loading branch information
azmelanar committed May 20, 2016
2 parents d645d4d + 53b23b0 commit fb4cb3f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# tasks file for sysctl

- name: set sysctl rules
sysctl: name="{{ item.key }}" value="{{ item.value }}" ignoreerrors={{ sysctl_ignore_errors }}
with_dict: sysctl_rules
sysctl:
name: "{{ item.key }}"
value: "{{ item.value }}"
ignoreerrors: "{{ sysctl_ignore_errors }}"
with_dict: "{{ sysctl_rules }}"
when: sysctl_rules is defined
tags: [sysctl]

0 comments on commit fb4cb3f

Please sign in to comment.