agoloncser.git_config

Git-config

Molecule testing

Setting global git configurations. Equivalent to git config --global NAME VALUE. It simply feeds the git_config Ansible module.

Requirements

See dependencies.

Role Variables

This is a sample variable structure used by this role:

    git_global_config:
      - name: user.email
        value: [email protected]
      - name: user.name
        value: Attila GOLONCSER
        state: present
      - name: pull.rebase
        value: "False"
        state: absent

git_global_config

A list of name/value pairs to set as global configuration.

git_global_config.item.name

Name of the configuration option.

git_global_config.item.value

Value of the configuration option.

git_global_config.item.state

State of the configuration option. Default: present.

Dependencies

The role agl4.git is set as dependency for installing git in your environment, which is not done in this role for being able to run it at any time without escalated privileges.

Example Playbook

  - hosts: localhost
    vars:
      git_global_config:
        - name: pull.rebase
          value: "False"
        - name: user.email
          value: [email protected]
        - name: user.name
          value: Attila GOLONCSER
    roles:
       - agl4.git_config

License

BSD

Author Information

@agl4

About

Role for setting git --global configurations.

Install
ansible-galaxy install agoloncser.git_config
GitHub repository
License
Unknown
Downloads
2.4k
Owner