Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
Alex Skrypnyk edited this page Apr 9, 2017 · 6 revisions

Q: How to map a custom directory?

A: The idea is to symlink anything inside of {{ beet_base }} into the desired location.

Create a custom task in .beetbox/tasks/post/dirs.yml

symlinks:
  - src: "{{ beet_base }}/.data"
    link: /var/lib/elasticsearch
    force: yes

Q: How to run a custom script on startup or provision?

A: Create a custom task in .beetbox/tasks/post/init.yml

- name: Runs init tasks.
  command: somescript.sh
  args:
    chdir: "{{ beet_base }}"
  become: no
Clone this wiki locally