Fix issues for yum

This commit is contained in:
Sergei Antipov 2019-05-21 16:42:26 -04:00
parent 7825db9f79
commit 1d0593464e
No known key found for this signature in database
GPG Key ID: B167B87787407B3A
2 changed files with 9 additions and 15 deletions

View File

@ -11,15 +11,12 @@
with_items: "{{ mongodb_version[0:3] }}"
when: mongodb_package == 'mongodb-org'
- name: Install MongoDB package
- name: Install MongoDB and numactl packages
yum:
name: "{{ mongodb_package }}"
state: "{{ mongodb_package_version is defined | ternary('present', 'latest') }}"
version: "{{ mongodb_package_version | default(omit) }}"
- name: Install numactl package
yum:
name: numactl
name:
- "{{ mongodb_package }}"
- numactl
state: "{{ mongodb_package_state }}"
- name: Install PyMongo package
yum:

View File

@ -19,13 +19,10 @@
- name: Install MongoDB package
yum:
name: "{{ mongodb_package }}"
state: "{{ mongodb_package_version is defined | ternary('present', 'latest') }}"
version: "{{ mongodb_package_version | default(omit) }}"
- name: Install numactl package
yum:
name: numactl
name:
- "{{ mongodb_package }}"
- numactl
state: "{{ mongodb_package_state }}"
- name: Install PyMongo package
yum: