library/roles/varnish-cache/tasks/main.yml: Ansible 2 compatibility.

This commit is contained in:
Andrea Dell'Amico 2016-08-25 14:07:23 +02:00
parent 597db93a0c
commit 9900be576b
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
---
- name: Install the required packages needed by the external varnish repo
apt: pkg={{ item }} state=present
with_items: varnish_repo_requirements
with_items: '{{ varnish_repo_requirements }}'
when: varnish_repo
tags: varnish
@ -24,12 +24,12 @@
- name: Install the varnish package
apt: pkg={{ item }} state={{ varnish_pkg_state }}
with_items: varnish_pkg_name
with_items: '{{ varnish_pkg_name }}'
tags: varnish
- name: Configure some kernel parameters via sysctl
sysctl: name={{ item.name }} value={{ item.value }} sysctl_file=/etc/sysctl.d/{{ varnish_sysctl_file }} reload=yes state=present
with_items: varnish_sysctl_kernel_parameters
with_items: '{{ varnish_sysctl_kernel_parameters }}'
when: varnish_set_sysctl_params
tags: [ 'varnish', 'varnishconf', 'sysctl' ]