GithubHelp home page GithubHelp logo

ansible-role-deploy-from-repo's Introduction

Ansible role: Deploy from Repo

Clone the specified git repository locally, push its contents up to a temp directory on the server, and then run the specified command in the uploaded folder.

Intended for use with private repos that have a make install process.

Requirements

Obviously, the operator of the playbook must have read access to the specified repo.

As of this writing, this role only works from a linux workstation because of the tempfile task.

Role Variables

  • repo_src

    The URL of the private repository.

  • repo_subdir

    If specified, only the files inside this dir will be pushed to the remote host.

  • make_cmd

    Only needed if you would run something other than make -s install.

Dependencies

n/a

Example Playbook

- hosts: servers
  roles:
     - name: Deploy package xyz
       role: acromedia.deploy-from-private
       repo_src: '[email protected]:account/project.git'
       repo_subdir: src
       make_cmd: make install

License

GPLv3

Author Information

Acro Media Inc https://www.acromedia.com

ansible-role-deploy-from-repo's People

Contributors

dale-c-anderson avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tabulon-ext

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.