From 2dcf0ab10eac8b9883cae9d6485543103ae6ced4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 27 Feb 2019 13:28:27 +0100 Subject: [PATCH] Use to_nice_json to manage packages list --- CHANGELOG.md | 13 +++++++------ tasks/main.yml | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bcc96f..5657b0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ -## v1.X +## v1.4.1 ### Fix * Set empty dependencies line to fix Galaxy warning. * Add possibility to restart Fail2ban service. +* Use to_nice_json to manage packages list. -## v1.4 +## v1.4.0 ### Enhancements * Set a variable to enable/disable the support of Nftables. @@ -20,7 +21,7 @@ ### Fix * Reload systemd daemons only if unit file change. -## v1.3 +## v1.3.0 ### Features * Provide the systemd unit. @@ -38,7 +39,7 @@ ### Features * Allow icmpv6 outgoing traffic. -## v1.2 +## v1.2.0 ### Features * Ensure to remove old packages (iptables,…). @@ -46,7 +47,7 @@ ### Fixes * Ensure to create the the directory to store the differents configuration files (/etc/nftables.d). -## v1.1 +## v1.1.0 ### Features * Manage nftables service at startup. @@ -59,7 +60,7 @@ * Remove DHCP incoming packets. The connection is started by the host, don't need incoming rule. * Allow outgoing OpenPGP HTTP requests. -## v1.0 +## v1.0.0 ### Features * Install `nftables` package for Debian based distros. diff --git a/tasks/main.yml b/tasks/main.yml index 1441cd5..0d167d0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -14,7 +14,7 @@ name: '{{ item }}' state: '{{ nft_pkg_state }}' with_items: - - '{{ nft_pkg_list }}' + - '{{ nft_pkg_list | to_nice_json }}' when: nft_enabled|bool - name: INSTALL Remove iptables packages @@ -22,7 +22,7 @@ name: '{{ item }}' state: '{{ nft_old_pkg_state }}' with_items: - - '{{ nft_old_pkg_list }}' + - '{{ nft_old_pkg_list | to_nice_json }}' when: (nft_enabled|bool and nft_old_pkg_manage|bool)