renatoalmeidaoliveira.netero.gogs_createrepo (1.1.5) — module

Create a repository on Gogs

| "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 encapusles Gogs API to create a repository

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create Repository
  gogs_createRepo:
    gogsURL: "http://gogs.local:3000/"
    organization: "acme"
    name: "Test Inventory"
    accessToken: "Token"

Inputs

    
name:
    description:
    - The repository name
    required: true

user:
    description:
    - The user that owns the repository, This argument is mutually exclusive with organization.
    required: false

readme:
    description:
    - Desired README template to apply. Use the name of the template.
    required: false

gogsURL:
    description:
    - The Gogs Server URL
    required: true

license:
    default: default
    description:
    - Desired LICENSE template to apply. Use the name of the template. For example, 'Apache
      v2 License' or 'MIT License'.
    required: false

private:
    default: false
    description:
    - Either true to create a private repository, or false to create a public one
    required: false

autoInit:
    default: false
    description:
    - Pass true to create an initial commit with README, .gitignore and LICENSE.
    required: false

gitignores:
    description:
    - Desired language .gitignore templates to apply. Use the name of the templates. For
      example, 'Go' or 'Go,SublimeText'.
    required: false

accessToken:
    description:
    - The user Access Token
    required: true

description:
    description:
    - A short description of the repository
    required: false

organization:
    description:
    - The organization that owns the repository, This argument is mutually exclusive with
      user.
    required: false

Outputs

message:
  description: object
  returned: success
  type: dict