From a1d109d0abba786d971b3705b72816fcc1d81d39 Mon Sep 17 00:00:00 2001 From: Dariusz Luksza Date: Tue, 18 Aug 2015 23:40:34 +0200 Subject: [PATCH 1/2] Fix typo --- tasks/install.deb.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.deb.yml b/tasks/install.deb.yml index acea3fd..513efe5 100644 --- a/tasks/install.deb.yml +++ b/tasks/install.deb.yml @@ -25,7 +25,7 @@ - name: Add APT repository apt_repository: repo="{{mongodb_repository}}" update_cache=yes -- name: Endure /data directory +- name: Ensure /data directory file: path=/data/db state=directory owner=mongodb recurse=yes - name: Install MongoDB package From 9d98bc002b3f63464b29d7ecec211a0c98a3a9a4 Mon Sep 17 00:00:00 2001 From: Dariusz Luksza Date: Tue, 18 Aug 2015 23:42:18 +0200 Subject: [PATCH 2/2] Move /data ensuring task after package install --- tasks/install.deb.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/install.deb.yml b/tasks/install.deb.yml index 513efe5..0102177 100644 --- a/tasks/install.deb.yml +++ b/tasks/install.deb.yml @@ -25,15 +25,15 @@ - name: Add APT repository apt_repository: repo="{{mongodb_repository}}" update_cache=yes -- name: Ensure /data directory - file: path=/data/db state=directory owner=mongodb recurse=yes - - name: Install MongoDB package apt: name={{item}} state=present with_items: - "{{mongodb_package}}" - numactl +- name: Ensure /data directory + file: path=/data/db state=directory owner=mongodb recurse=yes + - name: reload systemd shell: systemctl daemon-reload changed_when: false