Skip to content
Permalink
Browse files

FIXED DEPRECATION WARNING Invoking apt only once while using a loop v…

…ia squash_actions is deprecated
  • Loading branch information...
rlsit committed Aug 12, 2019
1 parent bcc6a6d commit 3a3284a030abfde8d1dfe72e759f1eb6e50fa5a9
Showing with 1 addition and 4 deletions.
  1. +1 −4 tasks/main.yml
@@ -2,12 +2,9 @@

- name: Install required packages
apt:
name: '{{ item }}'
name: '{{ ( unattended_upgrades__base_packages + unattended_upgrades__packages ) | flatten }}'
state: 'present'
install_recommends: False
with_flattened:
- '{{ unattended_upgrades__base_packages }}'
- '{{ unattended_upgrades__packages }}'
when: unattended_upgrades__enabled | bool

- name: Configure debconf answer

0 comments on commit 3a3284a

Please sign in to comment.
You can’t perform that action at this time.