Skip to content

Commit 9d98bc0

Browse files
committed
Move /data ensuring task after package install
1 parent a1d109d commit 9d98bc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/install.deb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
- name: Add APT repository
2626
apt_repository: repo="{{mongodb_repository}}" update_cache=yes
2727

28-
- name: Ensure /data directory
29-
file: path=/data/db state=directory owner=mongodb recurse=yes
30-
3128
- name: Install MongoDB package
3229
apt: name={{item}} state=present
3330
with_items:
3431
- "{{mongodb_package}}"
3532
- numactl
3633

34+
- name: Ensure /data directory
35+
file: path=/data/db state=directory owner=mongodb recurse=yes
36+
3737
- name: reload systemd
3838
shell: systemctl daemon-reload
3939
changed_when: false

0 commit comments

Comments
 (0)