Role Detail

PrabhuVignesh.push_to_deploy

GIT Push to deploy your application
Downloads
20
Type Ansible
Minimum Ansible Version 1.5
Installation $ ansible-galaxy install PrabhuVignesh.push_to_deploy
Tags
development
Last Commit
Last Imported
OS Platforms
Platform Version
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Last 10 Imports
Completed Status
SUCCESS
SUCCESS
SUCCESS
SUCCESS
SUCCESS
FAILED
FAILED

Ansible role for GIT push to deploy

Configure GIT hooks by installing this role.

Installation:

From ansible.galaxy :

ansible-galaxy install PrabhuVignesh.push_to_deploy

Useage:

Just keep the workstation machine's public key in a file and mention the path of the file where public keys are stored. (I mean Workstation machine as developer's machine)

 ---
  roles:
    - role: PrabhuVignesh.push_to_deploy
      path_for_authorized_keys: /path/to/public_key/file
      git_repository_path: /home/path/to/your/repo.git
      post_receive_script: "script to deploy the code"
      pre_receive_script: "Prepare storing code" 

After the ansible playbook run, Workstation machine should have this remote in git repository

git remote add production git@gitserver:repo.git

when ever developer push the code to gitserver, script for post-receive and pre-receive will run. for example "puppet deploy script", "cap deploy..." etc..

None