Fix issue with apt
This commit is contained in:
parent
02495dece3
commit
7825db9f79
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue