Custom tasks.

Custom tasks are an easy way to extend beetbox by adding your own ansible tasks -

Tasks are automatically included in the beetbox play before (pre) and after (post) the main provisioning tasks.

pre tasks


Include task files in this directory to run before provisioning, for example if you want to install all project composer dependencies you could add the following

- name: Install project dependencies with composer.
    command: install
    working_dir: "{{ beet_base }}"
  become: no

to a file /.beetbox/tasks/pre/composer.yml.

Tasks are run in alphabetical order if you have tasks dependencies and have access to all ansible variables within the scope of the project.

post tasks


Similar to pre tasks however these are run after the main playbook tasks.


Please try to make these tasks idempotent so it doesn't delay provisioning when rerun.