termlen0.caretaker.git_push (1.0.16) — module

Push software (or files) to git repository

| "added in version" 2.9 of termlen0.caretaker"

Authors: Victor da Costa

preview | supported by community

Install collection

Install with ansible-galaxy collection install termlen0.caretaker:==1.0.16


Add to requirements.yml

  collections:
    - name: termlen0.caretaker
      version: 1.0.16

Description

Manage I(git) push of files or software to repository.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "push local to remote"
  git_push:
    repo: "/path/to/testrepo"
    accept_hostkey: "true"
    key_file: "~/deploy_keys/testrepo"

Inputs

    
repo:
    aliases:
    - name
    description:
    - local repository path containing content.
    required: true

force:
    description:
    - If C(yes), will force the push operation to remote repository.
    type: bool

branch:
    default: master
    description:
    - Name of the branch.

remote:
    default: origin
    description:
    - Name of the remote.

key_file:
    description:
    - Specify an optional private key file path, on the target host, to use for the checkout.

ssh_opts:
    description:
    - Define GIT_SSH_COMMAND environment variables, which git then automatically uses
      to override ssh arguments. An example value could be "-o StrictHostKeyChecking=no"
      (although this particular option is better set via C(accept_hostkey)).

executable:
    description:
    - Path to git executable to use. If not supplied, the normal mechanism for resolving
      binary paths will be used.

accept_hostkey:
    description:
    - if C(yes), ensure that "-o StrictHostKeyChecking=no" is present as an ssh option.
    type: bool