File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 50
50
51
51
- name : mongodb restart
52
52
service : name={{ mongodb_daemon_name }} state=restarted
53
- when : config_result| changed and mongodb_manage_service
53
+ when : config_result is changed and mongodb_manage_service
54
54
55
55
- name : Ensure service is started
56
56
service : name={{ mongodb_daemon_name }} state=started
Original file line number Diff line number Diff line change 50
50
when : mongodb_package == 'mongodb-org'
51
51
52
52
- name : Install MongoDB package
53
- apt : name={{item}} state=present
54
- with_items :
55
- - " {{mongodb_package}}"
56
- - numactl
53
+ apt :
54
+ name :
55
+ - " {{mongodb_package}}"
56
+ - numactl
57
+ state : present
57
58
58
59
- name : Add systemd configuration if present
59
60
copy : src=mongodb.service dest=/lib/systemd/system/mongodb.service owner=root group=root mode=0640
68
69
shell : systemctl daemon-reload
69
70
when : mongodb_is_systemd and mongodb_manage_service
70
71
71
- - meta : flush_handlers
72
+ - block :
73
+ - meta : flush_handlers
72
74
when : mongodb_is_systemd
73
75
74
76
- name : Install PyMongo package
75
77
apt : pkg=python-pymongo state=latest
76
78
when : not mongodb_pymongo_from_pip
77
79
78
80
- name : Install PIP
79
- apt : pkg={{ item }}
80
- with_items :
81
- - python-dev
82
- - python-pip
81
+ apt :
82
+ pkg :
83
+ - python-dev
84
+ - python-pip
83
85
when : mongodb_pymongo_from_pip
84
86
85
87
- name : Install PyMongo from PIP
Original file line number Diff line number Diff line change 2
2
3
3
net:
4
4
bindIp: {{ mongodb_net_bindip }}
5
- {% if mongodb_major_version | version_compare ("3.6" , "<" ) -%}
5
+ {% if mongodb_major_version is version_compare ("3.6" , "<" ) -%}
6
6
http:
7
7
enabled: {{ mongodb_net_http_enabled | to_nice_json }}
8
8
{% endif -%}
@@ -39,7 +39,7 @@ security:
39
39
storage:
40
40
dbPath: {{ mongodb_storage_dbpath }}
41
41
directoryPerDB: {{ mongodb_storage_dirperdb | to_nice_json }}
42
- {% if mongodb_major_version | version_compare ("3.0" , ">=" ) -%}
42
+ {% if mongodb_major_version is version_compare ("3.0" , ">=" ) -%}
43
43
engine: {{ mongodb_storage_engine }}
44
44
{% endif -%}
45
45
journal:
You can’t perform that action at this time.
0 commit comments