Skip to content

ansiblebit/git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git

License Build Status

Platform Platform Platform Platform

Project Stats

Ansible role to install git.

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Precise x86_64
RedHat Centos 7 x86_64
RedHat CentOS 6.6 x86_64

Requirements

Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.

  • ansible >= 2.0

Role Variables

  • debug: flag to run debug tasks.

  • git_build_dependencies: list of build dependencies.

  • git_dir_src: directory where to store the git source.

  • git_path: the directory where to install git.

  • git_prefix: the filename prefix of the git tarball.

  • git_tarball: the filename for the git tarball.

  • git_version: the version to be installed.

  • debug: flag to run debug tasks.

Dependencies

None.

Playbooks

- hosts: servers
  vars:
    git_version: 1.9.1

  roles:
     - role: ansiblebit.git

Tags

  • configuration: configuration tasks.
  • debug: task to debug role variables.
  • installation: installation tasks.
  • validation: task to validate role variables.

Test

To run the tests you will need to install:

To run all tests against all pre-defined OS/distributions * ansible versions:

$ tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# log file will be stores under tests/log

To perform debugging on a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# to provision using the test.yml playbook (as many time as you need)
$ vagrant provision trusty64.vagrant.dev

# to access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev