gitconfig

tests Ansible Galaxy

ansible-role-gitconfig

This role configures git.

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
git_config_settings yes [] list Settings to set. See defaults/main.yml.

Dependencies

  • git should be installed.

Example Playbook

- hosts: all
  roles:
    - ansible-role-gitconfig
      git_config_settings:
        - name: alias.ci
          scope: global
          value: commit
        - name: alias.remotev
          value: remote -v
        - name: user.email
          repo: /role_test
          scope: local
          value: root@root

Testing

molecule test

License

MIT

Author Information

@boutetnico

Install
ansible-galaxy install boutetnico/ansible-role-gitconfig
GitHub repository
License
mit
Downloads
19
Owner
System Engineer