Skip to content

Commit

Permalink
Merge pull request #116 from zeelax/fix/mms-agent-install
Browse files Browse the repository at this point in the history
Put tasks in the right order
  • Loading branch information
UnderGreen authored Aug 24, 2018
2 parents 0ab897c + f12eb3e commit 8501b9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/mms-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
register: mongodb_mms_agent_loaded
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Install MMS agent (Debian)
apt:
deb: "{{mongodb_storage_dbpath}}/mms-agent.deb"
when: mongodb_mms_agent_loaded.changed #and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')

- name: Download MMS Agent (RHEL)
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
register: mongodb_mms_agent_loaded
when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat'

- name: Install MMS agent (Debian)
apt:
deb: "{{mongodb_storage_dbpath}}/mms-agent.deb"
when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu')

- name: Install MMS agent (RHEL)
yum:
name: "{{mongodb_storage_dbpath}}/mms-agent.rpm"
Expand Down

0 comments on commit 8501b9c

Please sign in to comment.