Fix issue with apt
This commit is contained in:
parent
02495dece3
commit
7825db9f79
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
mongodb_package: mongodb-org
|
mongodb_package: mongodb-org
|
||||||
mongodb_package_state: present
|
mongodb_package_state: present
|
||||||
mongodb_package_version: "4.0.9"
|
|
||||||
mongodb_version: "4.0"
|
mongodb_version: "4.0"
|
||||||
mongodb_apt_keyserver: keyserver.ubuntu.com
|
mongodb_apt_keyserver: keyserver.ubuntu.com
|
||||||
mongodb_apt_key_id:
|
mongodb_apt_key_id:
|
||||||
|
|
|
@ -51,17 +51,12 @@
|
||||||
with_items: "{{ mongodb_major_version }}"
|
with_items: "{{ mongodb_major_version }}"
|
||||||
when: mongodb_package == 'mongodb-org'
|
when: mongodb_package == 'mongodb-org'
|
||||||
|
|
||||||
- name: Install MongoDB package
|
- name: Install MongoDB and numactl packages
|
||||||
apt:
|
apt:
|
||||||
name: "{{ mongodb_package }}"
|
name:
|
||||||
state: "{{ mongodb_package_version is defined | ternary('present', 'latest') }}"
|
- "{{ mongodb_package }}"
|
||||||
version: "{{ mongodb_package_version | default(omit) }}"
|
- numactl
|
||||||
update_cache: true
|
state: "{{ mongodb_package_state }}"
|
||||||
|
|
||||||
- name: Install numactl package
|
|
||||||
apt:
|
|
||||||
name: numactl
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- name: Add systemd configuration if present
|
- name: Add systemd configuration if present
|
||||||
|
|
Loading…
Reference in New Issue