Merge pull request #144 from kraeml/feature/deprecation

Deprecation for apt resolved for debian
This commit is contained in:
Sergei Antipov 2019-04-22 11:18:44 -04:00 committed by GitHub
commit 387e7f7ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 12 deletions

View File

@ -50,7 +50,7 @@
- name: mongodb restart
service: name={{ mongodb_daemon_name }} state=restarted
when: config_result|changed and mongodb_manage_service
when: config_result is changed and mongodb_manage_service
- name: Ensure service is started
service: name={{ mongodb_daemon_name }} state=started

View File

@ -50,10 +50,11 @@
when: mongodb_package == 'mongodb-org'
- name: Install MongoDB package
apt: name={{item}} state=present
with_items:
- "{{mongodb_package}}"
- numactl
apt:
name:
- "{{mongodb_package}}"
- numactl
state: present
- name: Add systemd configuration if present
copy: src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640
@ -68,7 +69,8 @@
shell: systemctl daemon-reload
when: mongodb_is_systemd and mongodb_manage_service
- meta: flush_handlers
- block:
- meta: flush_handlers
when: mongodb_is_systemd
- name: Install PyMongo package
@ -76,10 +78,10 @@
when: not mongodb_pymongo_from_pip
- name: Install PIP
apt: pkg={{ item }}
with_items:
- python-dev
- python-pip
apt:
pkg:
- python-dev
- python-pip
when: mongodb_pymongo_from_pip
- name: Install PyMongo from PIP

View File

@ -2,7 +2,7 @@
net:
bindIp: {{ mongodb_net_bindip }}
{% if mongodb_major_version | version_compare("3.6", "<") -%}
{% if mongodb_major_version is version_compare("3.6", "<") -%}
http:
enabled: {{ mongodb_net_http_enabled | to_nice_json }}
{% endif -%}
@ -39,7 +39,7 @@ security:
storage:
dbPath: {{ mongodb_storage_dbpath }}
directoryPerDB: {{ mongodb_storage_dirperdb | to_nice_json }}
{% if mongodb_major_version | version_compare("3.0", ">=") -%}
{% if mongodb_major_version is version_compare("3.0", ">=") -%}
engine: {{ mongodb_storage_engine }}
{% endif -%}
journal: