Fix issue with apt

This commit is contained in:
Sergei Antipov 2019-05-21 16:39:59 -04:00
parent 02495dece3
commit 7825db9f79
No known key found for this signature in database
GPG Key ID: B167B87787407B3A
2 changed files with 5 additions and 11 deletions

View File

@ -2,7 +2,6 @@
mongodb_package: mongodb-org
mongodb_package_state: present
mongodb_package_version: "4.0.9"
mongodb_version: "4.0"
mongodb_apt_keyserver: keyserver.ubuntu.com
mongodb_apt_key_id:

View File

@ -51,17 +51,12 @@
with_items: "{{ mongodb_major_version }}"
when: mongodb_package == 'mongodb-org'
- name: Install MongoDB package
- name: Install MongoDB and numactl packages
apt:
name: "{{ mongodb_package }}"
state: "{{ mongodb_package_version is defined | ternary('present', 'latest') }}"
version: "{{ mongodb_package_version | default(omit) }}"
update_cache: true
- name: Install numactl package
apt:
name: numactl
state: present
name:
- "{{ mongodb_package }}"
- numactl
state: "{{ mongodb_package_state }}"
update_cache: true
- name: Add systemd configuration if present