Debian Codegraph @

ansible_collections/community/sops/roles/install/meta/argument_specs.yml

raw
1 ---
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # SPDX-FileCopyrightText: 2022, Felix Fontein
5
6 argument_specs:
7 main:
8 short_description: Install SOPS
9 version_added: 1.5.0
10 description:
11 - This role installs L(SOPS,https://github.com/getsops/sops) and GNU Privacy Guard (GPG).
12 - >-
13 This role supports the following operating systems:
14 Alpine (new enough),
15 Arch Linux,
16 CentOS 7, Stream 8, or newer,
17 Debian 10 (Buster) or newer,
18 Fedora (new enough),
19 RHEL 7 or newer,
20 Ubuntu 16.04 or newer LTS versions
21 - The Ansible facts C(ansible_facts.architecture), C(ansible_facts.distribution), C(ansible_facts.distribution_major_version),
22 C(ansible_facts.distribution_version), and C(ansible_facts.os_family) are expected to be present if O(sops_install_on_localhost) is V(false).
23 author:
24 - Felix Fontein (@felixfontein)
25 options:
26 sops_version:
27 default: latest
28 description:
29 - The version of SOPS to install.
30 - Should be a version like V(3.7.2). The special value V(latest) will select the latest version available form the given source.
31 type: str
32 sops_source:
33 default: auto
34 description:
35 - Determines the source from where SOPS is installed.
36 - The value V(github) will install SOPS from the SOPS releases on GitHub (U(https://github.com/getsops/sops/releases/)).
37 - The value V(system) will install SOPS from the system packages. Note that not all system package repositories support SOPS.
38 - The value V(auto) will determine the best source to install SOPS from. Here, system package repositories are preferred over GitHub.
39 type: str
40 choices:
41 - auto
42 - github
43 - system
44 sops_install_on_localhost:
45 default: false
46 description:
47 - Installs SOPS on the Ansible controller (C(localhost)) instead of the remote host.
48 type: bool
49 sops_become_on_install:
50 default: true
51 description:
52 - 'Whether the role should use C(become: true) when installing packages.'
53 type: bool
54 sops_github_latest_detection:
55 description:
56 - When installing the latest SOPS version from GitHub, configures how the latest release is detected.
57 - V(auto) tries V(api) first and then uses V(latest-release).
58 - V(api) asks the GitHub API for a list of recent releases and picks the highest version. Pre-releases are avoided.
59 - V(latest-release) uses a not fully documented URL to retrieve the release marked as "latest" by the repository maintainers.
60 type: str
61 choices:
62 - auto
63 - api
64 - latest-release
65 version_added: 1.6.0
66 sops_github_token:
67 description:
68 - Token to provide when querying the GitHub API for the latest release. Without the token
69 there are rather strict rate limits.
70 - Should mainly be used in GitHub Actions.
71 type: str
72 version_added: 1.6.0
73 attributes:
74 check_mode:
75 description: Can run in C(check_mode) and return changed status prediction without modifying target.
76 support: none
77 details:
78 - The role currently does not work in check mode.
79 # TODO: add 'check_mode: false' to tasks that prepare something
80 diff_mode:
81 description: Will return details on what has changed (or possibly needs changing in C(check_mode)), when in diff mode.
82 support: partial
83 details:
84 - The role supports diff mode if the M(ansible.builtin.package) action for the system supports it.
85 idempotent:
86 description:
87 - When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change.
88 - This assumes that the system controlled/queried by the module has not changed in a relevant way.
89 support: partial
90 details:
91 - The role is idempotent if the M(ansible.builtin.package) action for the system is idempotent.
92 - This is usually the case, but if packages need to be installed from GitHub (that is, through an URL), idempotence might not hold.
93 platform:
94 description: Target OS/families that can be operated against.
95 support: full
96 platforms:
97 - Alpine (new enough)
98 - Arch Linux
99 - CentOS 7, Stream 8, or newer
100 - Debian 10 (Buster) or newer
101 - Fedora (new enough)
102 - RHEL 7 or newer
103 - Ubuntu 16.04 or newer LTS versions