Skip to content

ejuravlev/ansible-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git - ansible role

Ansible role allows to manage git installation state on linux/windows machine

Usage examples

Simple usage (linux):

  - hosts: all
    become: yes
    roles:
      - role: git

Git installation with custom system gitconfig file:

- hosts: all
  roles:
    - role: git
      git_gitconfig_content:
        - 'diff "astextplain"':
            textconv: astextplain
        - http:
            sslBackend: openssl
            sslCAInfo: 'C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt'
        - core:
            autocrlf: true
            fscache: true
            symlinks: false
        - pull:
            rebase: false
        - credential:
            helper: manager
        - 'credential "https://dev.azure.com"':
            useHttpPath: true
        - init:
            defaultBranch: master

Installation example from binaries:

- hosts: all
  roles:
    - role: git
      git_version: 2.8.0
      git_install_from_source: true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages