Deploys your source code from git to your server
Defaults:
sources_target_user: web-app
sources_version: master
sources_repo: ssh://git@myserver.com:22/projects/web-app.git
sources_git_pem: files/git.pem
sources_target_dir: ~/web-app
sources_force: no
sources_register: ""
sources_create_deploy_user: true
sources_version - git branch/tag/commit sources_git_pem - path to private key to get access to your git repo through ssh. By default it fill search file "git.pem" sources_register - variable name for the repo update result. You can check if the repo was updated
- hosts: servers
roles:
- role: WebbyLab.sources
sources_repo: ssh://git@myserver.com:22/projects/web-app.git
sources_git_pem: files/git.pem
You can clone several repositories
- hosts: servers
roles:
- role: WebbyLab.sources
sources_repo: ssh://git@myserver.com:22/projects/web-app-client.git
sources_git_pem: files/git.pem
- role: WebbyLab.sources
sources_repo: ssh://git@myserver.com:22/projects/web-app-backend.git
sources_git_pem: files/git.pem
MIT
WebbyLab (http://webbylab.com)