This playbook automates the setup of ExomeSlicer application server
Tasks:
- Install RHEL7 dependencies
- Installs and configures NGINX
- Pulls down the latest source code from GitHub
- Builds the latest frontend React code
- Migrates the database if any model changes exist
- Configures services (gunicorn, nginx)
- You have sudo rights on the hosts
- Currently only supports deployment to RHEL7 server
- Create file called
vault-password.txt
that contains the password to decrypt deployment secrets. (Ask for vault password!)
ansible-playbook \
main.yml \
-i hosts \
-l <environment> \
-u <username> \
-K \
-k \
--vault-password-file vault-password.txt \
--tags setup
ansible-playbook \
main.yml \
-i hosts \
-l <environment> \
-u <username> \
-K \
-k \
--vault-password-file vault-password.txt \
--tags update
ansible-playbook \
main.yml \
-i hosts \
-l test \
-u <username> \
-K \
-k \
--vault-password-file vault-password.txt \
--tags update
--extra-vars "git_branch=<your branch>"
Deploy ExomeSlicer to a webserver as a new user. (Important for new team members or running update
deployment with a username for the first time!)
ansible-playbook \
main.yml \
-i hosts \
-l <environment> \
-u <username> \
-K \
-k \
--vault-password-file vault-password.txt \
--tags setup_user
ansible-playbook \
main.yml \
-i hosts \
-l <environment> \
-u <username> \
-K \
-k \
--vault-password-file vault-password.txt \
--tags webserver ## This will only run the tasks in the webserver role