From 032705673d88090e506a8ed24169b96ce7761c5f Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 9 Dec 2017 13:39:57 +0100 Subject: [PATCH] use loop_control --- tasks/config.yml | 2 ++ tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/config.yml b/tasks/config.yml index 6e25393..e375f07 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -13,6 +13,8 @@ weight: '{{ item.weight|default(omit) }}' table: '{{ item.table|default(omit) }}' with_items: '{{ iptables_custom_rules }}' + loop_control: + label: "{{item.name}}" tags: iptables - name: Set default iptables head rules diff --git a/tasks/main.yml b/tasks/main.yml index 6f1227c..865c60a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,4 +1,4 @@ --- - include_vars: 'os_{{ ansible_os_family }}.yml' -- include: install.yml -- include: config.yml +- include_tasks: install.yml +- include_tasks: config.yml