Fix ignoring of packages in 'latest' state

Change-Id: I019ed9d87435a1ab6e0b7ae8624d85afd95db3ae
This commit is contained in:
Dmitriy Rabotyagov 2019-12-19 14:10:26 +02:00
parent 87415a319b
commit 2093f503a6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
name: "{{ stig_packages_rhel7 | selectattr('enabled') | selectattr('state', 'equalto', item) | sum(attribute='packages', start=[]) }}"
state: "{{ item }}"
with_items:
- "{{ stig_packages_rhel7 | selectattr('enabled') | selectattr('state', 'equalto', 'present') | map(attribute='state') | unique | list }}"
- "{{ stig_packages_rhel7 | selectattr('enabled') | selectattr('state', 'in', ['present', 'latest']) | map(attribute='state') | unique | list }}"
tags:
- cat1
- auth