File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 5
5
register : mongodb_mms_agent_loaded
6
6
when : ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
7
7
8
+ - name : Install MMS agent (Debian)
9
+ apt :
10
+ deb : " {{mongodb_storage_dbpath}}/mms-agent.deb"
11
+ when : mongodb_mms_agent_loaded.changed # and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')
12
+
8
13
- name : Download MMS Agent (RHEL)
9
14
get_url : url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
10
15
register : mongodb_mms_agent_loaded
11
16
when : ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat'
12
17
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
18
- name : Install MMS agent (RHEL)
19
19
yum :
20
20
name : " {{mongodb_storage_dbpath}}/mms-agent.rpm"
You can’t perform that action at this time.
0 commit comments