File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ dependencies:
16
16
- sudo apt-get install python-pip python-dev
17
17
- sudo pip install --upgrade setuptools
18
18
- sudo pip install ansible
19
+ # fix for Python SNI (Server Name Indication) verification
20
+ # https://github.com/ansible/ansible/issues/12161#issuecomment-136949743
21
+ - sudo pip install urllib3 pyopenssl ndg-httpsclient pyasn1
19
22
- ansible --version
20
23
21
24
test :
Original file line number Diff line number Diff line change 1
- - name : Install dependencies
2
- sudo : true
1
+ ---
2
+ - name : Add mongodb key
3
+ sudo : yes
4
+ apt_key :
5
+ url : https://www.mongodb.org/static/pgp/server-3.2.asc
6
+ id : 42F3E95A2C4F08279C4960ADD68FA50FEA312927
7
+ state : present
8
+ tags : [databases, mongodb]
9
+
10
+ - name : Add mongodb repository
11
+ sudo : yes
12
+ apt_repository :
13
+ repo : ' deb http://repo.mongodb.org/apt/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }}/mongodb-org/3.2 multiverse'
14
+ state : present
15
+ tags : [databases, mongodb]
16
+
17
+ - name : Install mongodb
18
+ sudo : yes
3
19
apt :
4
- name : " {{ item }} "
20
+ name : mongodb-org
5
21
update_cache : yes
6
22
state : present
7
- with_items :
8
- - mongodb-server
23
+ tags : [databases, mongodb]
You can’t perform that action at this time.
0 commit comments