From 8c45015e6475fdeaecb55deda163654d48edd5d4 Mon Sep 17 00:00:00 2001 From: Gavrilov Alexy Date: Wed, 13 Apr 2016 12:23:26 +0500 Subject: [PATCH] fix [DEPRECATION WARNING] ansible ver 2.0.1.0 --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 807ab0e..d6e9878 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,7 +19,7 @@ state: 'present' install_recommends: False with_flattened: - - dhcpd_base_packages_map[dhcpd_mode] + - '{{ dhcpd_base_packages_map[dhcpd_mode] }}' - [ '{{ "dhcp-probe" if (dhcpd_probe|d() and dhcpd_probe) else [] }}' ] - name: Reconfigure ISC DHCP relay @@ -58,7 +58,7 @@ owner: 'root' group: 'root' mode: '0644' - with_items: dhcpd_includes + with_items: '{{ dhcpd_includes }}' notify: [ 'Restart isc-dhcp-server' ] when: ((item is defined and item) and dhcpd_mode == 'server' and (dhcpd_register_config is defined and dhcpd_register_config.changed))