MMS Agent can now be installed on RHEL distributions.
This commit is contained in:
parent
349383f1fd
commit
5b3623f9f1
|
@ -1,12 +1,25 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Install MMS agent pt. 1
|
- name: Download MMS Agent (Debian)
|
||||||
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.deb
|
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.deb
|
||||||
register: mongodb_mms_agent_loaded
|
register: mongodb_mms_agent_loaded
|
||||||
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
- name: Install MMS agent pt. 2
|
- name: Download MMS Agent (RHEL)
|
||||||
apt: deb={{mongodb_storage_dbpath}}/mms-agent.deb
|
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
|
||||||
when: mongodb_mms_agent_loaded.changed
|
register: mongodb_mms_agent_loaded
|
||||||
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
||||||
|
|
||||||
|
- 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"
|
||||||
|
state: present
|
||||||
|
when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux')
|
||||||
|
|
||||||
- name: Configure the MMS agent pt. 1
|
- name: Configure the MMS agent pt. 1
|
||||||
file: state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755
|
file: state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755
|
||||||
|
|
Loading…
Reference in New Issue