Apt update cache before installing mogodb

Fix "No package matching 'mongodb' is available" error
This commit is contained in:
ShaulMyplay 2019-05-01 14:04:29 +03:00 committed by GitHub
parent 44c20620c3
commit 282591852a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@
- "{{mongodb_package}}" - "{{mongodb_package}}"
- numactl - numactl
state: present state: present
update_cache: yes
- name: Add systemd configuration if present - name: Add systemd configuration if present
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640 copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640