escrimaglia.devs_git.o4n_git_set_remote (1.0.2) — module

set git branch and it remote in a directory

| "added in version" 2.0 of escrimaglia.devs_git"

Authors: Ed Scrimaglia

Install collection

Install with ansible-galaxy collection install escrimaglia.devs_git:==1.0.2


Add to requirements.yml

  collections:
    - name: escrimaglia.devs_git
      version: 1.0.2

Description

Detect if already exists a remote git linked to the directory

Set the origin/remote link

Set the main branch

Inputs

    
path:
    default: ./
    description: directory where to set the remote
    required: false

state:
    description: set or unset git remote
    required: true

branch:
    default: M
    description: branch to be used
    required: true

origin:
    default: origin
    description: the origin
    required: false

remote:
    description: repository to be set as remote by git
    required: true