Move /data ensuring task after package install

This commit is contained in:
Dariusz Luksza 2015-08-18 23:42:18 +02:00 committed by Sergei Antipov
parent 53041f47d0
commit fbd30315e4
1 changed files with 3 additions and 3 deletions

View File

@ -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