Merge pull request #144 from kraeml/feature/deprecation
Deprecation for apt resolved for debian
This commit is contained in:
commit
387e7f7ff5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue