From 282591852a5e22a03f1e7cc5ef25958fb3ef9af2 Mon Sep 17 00:00:00 2001 From: ShaulMyplay <43341727+ShaulMyplay@users.noreply.github.com> Date: Wed, 1 May 2019 14:04:29 +0300 Subject: [PATCH] Apt update cache before installing mogodb Fix "No package matching 'mongodb' is available" error --- tasks/install.debian.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/install.debian.yml b/tasks/install.debian.yml index be5a47b..aa75e66 100644 --- a/tasks/install.debian.yml +++ b/tasks/install.debian.yml @@ -55,6 +55,7 @@ - "{{mongodb_package}}" - numactl state: present + update_cache: yes - name: Add systemd configuration if present copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640