Use to_nice_json to manage packages list

This commit is contained in:
Jeremy Gardais 2019-02-27 13:28:27 +01:00
parent f47be2bebe
commit 2dcf0ab10e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 9 additions and 8 deletions

View File

@ -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.

View File

@ -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)