Skip to content

Commit 2825918

Browse files
authored
Apt update cache before installing mogodb
Fix "No package matching 'mongodb' is available" error
1 parent 44c2062 commit 2825918

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/install.debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- "{{mongodb_package}}"
5656
- numactl
5757
state: present
58+
update_cache: yes
5859

5960
- name: Add systemd configuration if present
6061
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640

0 commit comments

Comments
 (0)