Skip to content

Commit 8501b9c

Browse files
authored
Merge pull request #116 from zeelax/fix/mms-agent-install
Put tasks in the right order
2 parents 0ab897c + f12eb3e commit 8501b9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/mms-agent.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
register: mongodb_mms_agent_loaded
66
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
77

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+
813
- name: Download MMS Agent (RHEL)
914
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
1015
register: mongodb_mms_agent_loaded
1116
when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat'
1217

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-
1818
- name: Install MMS agent (RHEL)
1919
yum:
2020
name: "{{mongodb_storage_dbpath}}/mms-agent.rpm"

0 commit comments

Comments
 (0)