From 9570a621b2a04dfa6d67cf7c5a70c9e82f67e620 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Fri, 14 Oct 2016 17:31:36 -0400 Subject: Template with_items for upstream ansible-2.2 compat. --- roles/nickhammond.logrotate/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/nickhammond.logrotate/tasks/main.yml') diff --git a/roles/nickhammond.logrotate/tasks/main.yml b/roles/nickhammond.logrotate/tasks/main.yml index e2c51a903..5060e8cd4 100644 --- a/roles/nickhammond.logrotate/tasks/main.yml +++ b/roles/nickhammond.logrotate/tasks/main.yml @@ -7,5 +7,5 @@ template: src: logrotate.d.j2 dest: /etc/logrotate.d/{{ item.name }} - with_items: logrotate_scripts + with_items: "{{ logrotate_scripts }}" when: logrotate_scripts is defined -- cgit v1.2.3 From 12b17e1af352748d00d8ba2cf3b99a623ec61641 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Sat, 15 Oct 2016 09:34:19 -0400 Subject: Default [] --- roles/nickhammond.logrotate/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/nickhammond.logrotate/tasks/main.yml') diff --git a/roles/nickhammond.logrotate/tasks/main.yml b/roles/nickhammond.logrotate/tasks/main.yml index 5060e8cd4..1979c851f 100644 --- a/roles/nickhammond.logrotate/tasks/main.yml +++ b/roles/nickhammond.logrotate/tasks/main.yml @@ -7,5 +7,5 @@ template: src: logrotate.d.j2 dest: /etc/logrotate.d/{{ item.name }} - with_items: "{{ logrotate_scripts }}" + with_items: "{{ logrotate_scripts | default([]) }}" when: logrotate_scripts is defined -- cgit v1.2.3