Skip to content

Commit 023b3e1

Browse files
committed
Fixed MMS-agent installation on RedHat machines
1 parent 6077df7 commit 023b3e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/mms-agent.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
- name: Download MMS Agent (RHEL)
99
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
1010
register: mongodb_mms_agent_loaded
11-
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
11+
when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat'
1212

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

1818
- name: Install MMS agent (RHEL)
1919
yum:
2020
name: "{{mongodb_storage_dbpath}}/mms-agent.rpm"
2121
state: present
22-
when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux')
22+
when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat')
2323

2424
- name: Configure the MMS agent pt. 1
2525
file: state=directory path=/etc/mongodb-mms owner={{mongodb_user}} group={{mongodb_user}} mode=0755

0 commit comments

Comments
 (0)