Separate repo update from install task (fix #24)

This commit is contained in:
Jeremy Gardais 2021-08-25 15:34:03 +02:00
parent 97440461df
commit c7512f7b13
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,11 @@
## v2.X.Y
### Added
* Molecule tests for Gentoo (many thanks to @VTimofeenko ! PR #25).
### Fixed
* Separate repositories update from installation task (fix #24).
## v2.0.0
### Added

View File

@ -55,11 +55,16 @@
loop_var: osname
# Manage packages [[[1
- name: Update repositories
package:
update_cache: true
when: (nft_enabled|bool and
ansible_os_family not in [ 'Gentoo' ])
- name: Ensure Nftables packages are in their desired state
package:
name: '{{ nft_pkg_list | list }}'
state: '{{ nft_pkg_state }}'
# update_cache: true
register: pkg_install_result
until: pkg_install_result is success
when: nft_enabled|bool