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
|
@ -33,6 +33,12 @@
|
||||||
when: mongodb_install_from_external_repo
|
when: mongodb_install_from_external_repo
|
||||||
tags: mongodb
|
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
|
- name: We are upgrading, install the latest version of the mongo packages
|
||||||
apt: pkg={{ item }} state=latest
|
apt: pkg={{ item }} state=latest
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -70,12 +76,6 @@
|
||||||
when: mongodb_install_conf
|
when: mongodb_install_conf
|
||||||
tags: mongodb
|
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
|
- name: Install the mongodb defaults file
|
||||||
template: src=mongod-default.j2 dest=/etc/default/mongod owner=root group=root mode=0444
|
template: src=mongod-default.j2 dest=/etc/default/mongod owner=root group=root mode=0444
|
||||||
when: mongodb_install_conf
|
when: mongodb_install_conf
|
||||||
|
|
Loading…
Reference in New Issue