Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_scoop_bucket.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright: (c) 2020, Jamie Magee <[email protected]>
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: win_scoop_bucket
10 version_added: 1.0.0
11 short_description: Manage Scoop buckets
12 description:
13 - Manage Scoop buckets
14 requirements:
15 - git
16 options:
17 name:
18 description:
19 - Name of the Scoop bucket.
20 type: str
21 required: yes
22 repo:
23 description:
24 - Git repository that contains the scoop bucket
25 type: str
26 state:
27 description:
28 - State of the Scoop bucket.
29 - When C(absent), will ensure the package is not installed.
30 - When C(present), will ensure the package is installed.
31 type: str
32 choices: [ absent, present ]
33 default: present
34 seealso:
35 - module: community.windows.win_scoop
36 - name: Scoop website
37 description: More information about Scoop
38 link: https://scoop.sh
39 - name: Scoop directory
40 description: A directory of buckets for the scoop package manager for Windows
41 link: https://rasa.github.io/scoop-directory/
42 author:
43 - Jamie Magee (@JamieMagee)
44 '''
45
46 EXAMPLES = r'''
47 - name: Add the extras bucket
48 community.windows.win_scoop_bucket:
49 name: extras
50
51 - name: Remove the versions bucket
52 community.windows.win_scoop_bucket:
53 name: versions
54 state: absent
55
56 - name: Add a custom bucket
57 community.windows.win_scoop_bucket:
58 name: my-bucket
59 repo: https://github.com/example/my-bucket
60 '''
61
62 RETURN = r'''
63 rc:
64 description: The result code of the scoop action
65 returned: always
66 type: int
67 sample: 0
68 stdout:
69 description: The raw output from the scoop action
70 returned: on failure or when verbosity is greater than 1
71 type: str
72 sample: The test bucket was added successfully.
73 '''