From 9910c8580fc538f9be0c834794ee1f1f84d73f77 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 29 Mar 2019 13:14:12 +0100 Subject: [PATCH] mongodb: fix the apt tasks. --- mongodb-org/tasks/mongodb.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mongodb-org/tasks/mongodb.yml b/mongodb-org/tasks/mongodb.yml index 37a34e2e..dae86dab 100644 --- a/mongodb-org/tasks/mongodb.yml +++ b/mongodb-org/tasks/mongodb.yml @@ -49,15 +49,13 @@ - block: - name: We are upgrading, install the latest version of the mongodb packages - apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time=1800 - with_items: '{{ mongodb_server_pkgs }}' + apt: pkg={{ mongodb_server_pkgs }} state=latest update_cache=yes cache_valid_time=1800 when: - mongodb_install_packages - mongodb_upgrade_from_older_version - name: Install the mongodb packages - apt: pkg={{ item }} state={{ mongodb_pkg_state }} update_cache=yes cache_valid_time=1800 - with_items: '{{ mongodb_server_pkgs }}' + apt: pkg={{ mongodb_server_pkgs }} state={{ mongodb_pkg_state }} update_cache=yes cache_valid_time=1800 when: - mongodb_install_packages @@ -87,8 +85,7 @@ - block: - name: Install the mongodb client packages - apt: pkg={{ item }} state={{ mongodb_pkg_state }} update_cache=yes cache_valid_time=1800 - with_items: '{{ mongodb_client_pkgs }}' + apt: pkg={{ mongodb_client_pkgs }} state={{ mongodb_pkg_state }} update_cache=yes cache_valid_time=1800 when: not mongodb_install_server tags: [ 'mongodb', 'mongodb_client' ]