WebbyLab.sources

sources

Deploys your source code from git to your server

Role Variables

Defaults:

sources_target_user: web-app
sources_version: master
sources_repo: ssh://[email protected]: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

Example Playbook

- hosts: servers
  roles:
     - role: WebbyLab.sources
       sources_repo: ssh://[email protected]: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://[email protected]:22/projects/web-app-client.git
       sources_git_pem:  files/git.pem

     - role: WebbyLab.sources
       sources_repo: ssh://[email protected]:22/projects/web-app-backend.git
       sources_git_pem:  files/git.pem

License

MIT

Author Information

WebbyLab (http://webbylab.com)

About

Ansible role for deploying sources from git repository

Install
ansible-galaxy install WebbyLab.sources
GitHub repository
License
Unknown
Downloads
69
Owner