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: 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:

View File

@ -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