renatoalmeidaoliveira.netero.git_commit (1.1.5) — module

Makes git commit on repository

| "added in version" 0.0.1 of renatoalmeidaoliveira.netero"

Authors: Renato Almeida de Oliveira (renato.a.oliveira@pm.me)

preview | supported by community

Install collection

Install with ansible-galaxy collection install renatoalmeidaoliveira.netero:==1.1.5


Add to requirements.yml

  collections:
    - name: renatoalmeidaoliveira.netero
      version: 1.1.5

Description

This module runs git status and if there are any changes on the repository makes git add * ana git commit


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Commit repo
  git_commit:
    path: /home/repository
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Commit with message
  git_commit:
    path: /home/repository
    commitMessage: "Commit executed by Ansible"

Inputs

    
path:
    description:
    - The repository path
    required: true

commitMessage:
    description:
    - Sets the commit message, if none uses timestamp
    required: false

Outputs

message:
  description: object
  returned: success
  type: dict