library/roles/mongodb-org-3.2/tasks/mongodb.yml: Install the configuration file before installing the package.

This commit is contained in:
Andrea Dell'Amico 2017-01-13 19:55:33 +01:00
parent 4457e78aea
commit 2b7ad8b132
1 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,13 @@
apt_repository: repo="deb http://repo.mongodb.org/apt/ubuntu {{ ansible_distribution_release }}/mongodb-org/3.2 multiverse" update_cache=yes state=present
when: mongodb_install_from_external_repo
tags: mongodb
- name: Install the mongodb 3.2 configuration
template: src=mongod-3.2.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0444
when: mongodb_install_conf
notify: Restart mongodb
tags: mongodb
- name: We are upgrading, install the latest version of the mongo packages
apt: pkg={{ item }} state=latest
with_items:
@ -70,12 +76,6 @@
when: mongodb_install_conf
tags: mongodb
- name: Install the mongodb 3.2 configuration
template: src=mongod-3.2.conf.j2 dest=/etc/mongod.conf owner=root group=root mode=0444
when: mongodb_install_conf
notify: Restart mongodb
tags: mongodb
- name: Install the mongodb defaults file
template: src=mongod-default.j2 dest=/etc/default/mongod owner=root group=root mode=0444
when: mongodb_install_conf