mirror of
https://github.com/status-im/ansible-role-mongodb.git
synced 2025-01-09 13:05:45 +00:00
Move /data ensuring task after package install
This commit is contained in:
parent
a1d109d0ab
commit
9d98bc002b
@ -25,15 +25,15 @@
|
|||||||
- name: Add APT repository
|
- name: Add APT repository
|
||||||
apt_repository: repo="{{mongodb_repository}}" update_cache=yes
|
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
|
- name: Install MongoDB package
|
||||||
apt: name={{item}} state=present
|
apt: name={{item}} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- "{{mongodb_package}}"
|
- "{{mongodb_package}}"
|
||||||
- numactl
|
- numactl
|
||||||
|
|
||||||
|
- name: Ensure /data directory
|
||||||
|
file: path=/data/db state=directory owner=mongodb recurse=yes
|
||||||
|
|
||||||
- name: reload systemd
|
- name: reload systemd
|
||||||
shell: systemctl daemon-reload
|
shell: systemctl daemon-reload
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user