Files
wrestlingdev-ansible/roles/rails/tasks/worker.yml

9 lines
281 B
YAML

---
# This task clones the repo and runs the worker docker container.
#
- name: Copy the code from repository
git: repo={{ repository }} dest=/root/wrestlingApp
- name: Create and run delayed job worker
command: chdir=/root/wrestlingApp bash rails-prod.sh wrestlingdev-worker