File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
3
- - name : Install MMS agent pt. 1
3
+ - name : Download MMS Agent (Debian)
4
4
get_url : url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.deb
5
5
register : mongodb_mms_agent_loaded
6
+ when : ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
6
7
7
- - name : Install MMS agent pt. 2
8
- apt : deb={{mongodb_storage_dbpath}}/mms-agent.deb
9
- when : mongodb_mms_agent_loaded.changed
8
+ - name : Download MMS Agent (RHEL)
9
+ get_url : url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
10
+ register : mongodb_mms_agent_loaded
11
+ when : ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
12
+
13
+ - name : Install MMS agent (Debian)
14
+ apt :
15
+ deb : " {{mongodb_storage_dbpath}}/mms-agent.deb"
16
+ when : mongodb_mms_agent_loaded.changed and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')
17
+
18
+ - name : Install MMS agent (RHEL)
19
+ yum :
20
+ name : " {{mongodb_storage_dbpath}}/mms-agent.rpm"
21
+ state : present
22
+ when : mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux')
10
23
11
24
- name : Configure the MMS agent pt. 1
12
25
file : state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755
You can’t perform that action at this time.
0 commit comments