forked from ISTI-ansible-roles/ansible-roles
library/roles/mongodb-org-3.2/tasks/mongodb.yml: Install the configuration file before installing the package.
This commit is contained in:
parent
4457e78aea
commit
2b7ad8b132
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue