Fix E405 Remote package tasks should have a retry

This commit is contained in:
Jeremy Gardais 2019-02-27 13:31:25 +01:00
parent 2dcf0ab10e
commit 7ace36ed6e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@
* Set empty dependencies line to fix Galaxy warning.
* Add possibility to restart Fail2ban service.
* Use to_nice_json to manage packages list.
* Fix E405 Remote package tasks should have a retry.
## v1.4.0

View File

@ -15,6 +15,8 @@
state: '{{ nft_pkg_state }}'
with_items:
- '{{ nft_pkg_list | to_nice_json }}'
register: pkg_install_result
until: pkg_install_result is success
when: nft_enabled|bool
- name: INSTALL Remove iptables packages
@ -23,6 +25,8 @@
state: '{{ nft_old_pkg_state }}'
with_items:
- '{{ nft_old_pkg_list | to_nice_json }}'
register: pkg_remove_result
until: pkg_remove_result is success
when: (nft_enabled|bool and
nft_old_pkg_manage|bool)