Fixed MMS-agent installation on RedHat machines

This commit is contained in:
Sergei Antipov 2018-02-26 18:46:28 +07:00
parent 6077df7776
commit 023b3e115c
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
- name: Download MMS Agent (RHEL) - name: Download MMS Agent (RHEL)
get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm get_url: url={{mongodb_mms_agent_pkg}} dest={{mongodb_storage_dbpath}}/mms-agent.rpm
register: mongodb_mms_agent_loaded register: mongodb_mms_agent_loaded
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' when: ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat'
- name: Install MMS agent (Debian) - name: Install MMS agent (Debian)
apt: apt:
@ -19,7 +19,7 @@
yum: yum:
name: "{{mongodb_storage_dbpath}}/mms-agent.rpm" name: "{{mongodb_storage_dbpath}}/mms-agent.rpm"
state: present state: present
when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux') when: mongodb_mms_agent_loaded.changed and (ansible_distribution == 'CentOS' or ansible_distribution == 'RedHat')
- 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