Skip to content

WebbyLab/ansible-role-sources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sources

Deploys your source code from git to your server

Role Variables

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

Example Playbook

- 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

License

MIT

Author Information

WebbyLab (http://webbylab.com)

About

Ansible role for deploying sources from git repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published