community.windows.win_scoop_bucket (2.2.0) — module

Manage Scoop buckets

| "added in version" 1.0.0 of community.windows"

Authors: Jamie Magee (@JamieMagee)

Install collection

Install with ansible-galaxy collection install community.windows:==2.2.0


Add to requirements.yml

  collections:
    - name: community.windows
      version: 2.2.0

Description

Manage Scoop buckets


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add the extras bucket
  community.windows.win_scoop_bucket:
    name: extras
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove the versions bucket
  community.windows.win_scoop_bucket:
    name: versions
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add a custom bucket
  community.windows.win_scoop_bucket:
    name: my-bucket
    repo: https://github.com/example/my-bucket

Inputs

    
name:
    description:
    - Name of the Scoop bucket.
    required: true
    type: str

repo:
    description:
    - Git repository that contains the scoop bucket
    type: str

state:
    choices:
    - absent
    - present
    default: present
    description:
    - State of the Scoop bucket.
    - When C(absent), will ensure the package is not installed.
    - When C(present), will ensure the package is installed.
    type: str

Outputs

rc:
  description: The result code of the scoop action
  returned: always
  sample: 0
  type: int
stdout:
  description: The raw output from the scoop action
  returned: on failure or when verbosity is greater than 1
  sample: The test bucket was added successfully.
  type: str

See also