Watch
1
0
Fork
You've already forked community.general
0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-08-09 03:15:06 +02:00
  • Python 99.7%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Chris Dobbyn 6d6d64d3d0
homebrew_tap: add trust option (#12503)
* homebrew_tap: add trust option

Homebrew now refuses to load formulae, casks and commands from untrusted
third-party taps, so tapping a repository is no longer enough to use it.

Add a 'trust' option that manages the tap's entry in Homebrew's trust
store via 'brew trust' and 'brew untrust'. Leaving the option unset keeps
the previous behaviour and never invokes 'brew trust', so older Homebrew
versions are unaffected.

Both commands exit successfully even when they change nothing, so the
resulting state is read back from 'brew trust --json v1' rather than
inferred from the return code.

This also lets the homebrew integration tests drop the raw 'brew trust'
commands they had to shell out to.

* Add PR link to changelog fragment

* homebrew_tap: annotate the tap and trust helper signatures

* homebrew_tap: strip the homebrew- prefix from the repository only

* homebrew_tap: keep normalized_tap working on Python 3.8

`str.removeprefix()` is Python 3.9+, but modules run on the target's
interpreter and CI covers Python 3.8, where it failed with
`AttributeError: 'str' object has no attribute 'removeprefix'`.

An `^`-anchored `re.sub` is equivalent: the anchor only matches at
position 0, so it strips a single leading prefix rather than every
occurrence. That also matches Homebrew itself, which applies
`/\A(home|linux)brew-/` to the repository with Ruby's `sub`, which
replaces only the first match.
2026-08-06 14:36:16 +02:00
.azure-pipelines CI: Replace Alpine 3.23 with 3.24 for devel (#12463) 2026-07-22 19:20:49 +02:00
.devcontainer chore: devcontainer/pre-commit (#11729) 2026-04-03 21:49:23 +02:00
.github consul_kv: add consul_kv_info module (#12455) 2026-08-06 09:39:09 +02:00
changelogs homebrew_tap: add trust option (#12503) 2026-08-06 14:36:16 +02:00
docs/docsite lmdb_kv lookup, guide_alicloud: fix deprecated list-format vars: in examples and docs (#11942) 2026-04-30 12:36:13 +12:00
LICENSES Remove no longer needed _mount module util (#11232) 2025-12-01 06:42:13 +01:00
meta consul_kv: add consul_kv_info module (#12455) 2026-08-06 09:39:09 +02:00
plugins homebrew_tap: add trust option (#12503) 2026-08-06 14:36:16 +02:00
tests homebrew_tap: add trust option (#12503) 2026-08-06 14:36:16 +02:00
.ansible-lint Ansible-lint: use command instead of shell if possible (#12468) 2026-07-23 07:37:55 +02:00
.git-blame-ignore-revs Add latest commit to .git-blame-ignore-revs. 2026-02-04 07:51:20 +01:00
.gitignore lvm_pv_move_data: new module (#10416) 2025-08-04 19:59:54 +02:00
.mypy.ini archive: add zstd support (#12497) 2026-08-05 08:22:27 +02:00
.pre-commit-config.yaml chore: devcontainer/pre-commit (#11729) 2026-04-03 21:49:23 +02:00
.yamllint CI: Add yamllint for YAML files, plugin/module docs, and YAML in extra docs (#10279) 2025-06-30 20:46:56 +02:00
antsibull-nox.toml Add more precise ruff configs for modules/module_utils and everything else (#12517) 2026-08-06 14:18:41 +02:00
CHANGELOG.md Add MarkDown changelog and use it by default (#7941) 2024-02-09 13:08:50 +01:00
CHANGELOG.md.license Add MarkDown changelog and use it by default (#7941) 2024-02-09 13:08:50 +01:00
CHANGELOG.rst Remove leftovers. 2023-01-15 18:44:50 +01:00
CHANGELOG.rst.license Make reuse conformant (#5138) 2022-08-21 08:27:01 +02:00
commit-rights.md docs: migrate RTD URLs to docs.ansible.com (#11109) 2025-11-19 07:00:51 +01:00
CONTRIBUTING.md Mention AI policy in contributing guide (#12327) 2026-06-24 06:17:45 +02:00
COPYING Initial commit 2020-03-09 09:11:07 +00:00
galaxy.yml The next feature release will be 13.3.0. 2026-07-13 21:48:51 +02:00
noxfile.py AZP: Generate CI matrix and run tests with antsibull-nox (#12315) 2026-06-23 20:06:57 +02:00
README.md CI: Run GHA integration tests with antsibull-nox (#12311) 2026-06-22 06:15:10 +02:00
REUSE.toml Migrate .reuse/dep5 to REUSE.toml. 2025-03-29 12:17:36 +01:00
ruff-modules.toml Add more precise ruff configs for modules/module_utils and everything else (#12517) 2026-08-06 14:18:41 +02:00
ruff-plugins.toml Add more precise ruff configs for modules/module_utils and everything else (#12517) 2026-08-06 14:18:41 +02:00
ruff.toml Add community.library_inventory_filtering_v1 as a new dependency; use for opennebula inventory plugin (#12302) 2026-07-10 22:55:54 +02:00

Community General Collection

Documentation AZP CI Nox CI Codecov REUSE status

This repository contains the community.general Ansible Collection. The collection is a part of the Ansible package and includes many modules and plugins supported by Ansible community which are not part of more specialized community collections.

You can find documentation for this collection on the Ansible docs site.

Please note that this collection does not support Windows targets. Only connection plugins included in this collection might support Windows targets, and will explicitly mention that in their documentation if they do so.

Code of Conduct

We follow Ansible Code of Conduct in all our interactions within this project.

If you encounter abusive behavior violating the Ansible Code of Conduct, please refer to the policy violations section of the Code of Conduct for information on how to raise a complaint.

Communication

  • Join the Ansible forum:

    • Get Help: get help or help others. This is for questions about modules or plugins in the collection. Please add appropriate tags if you start new discussions.
    • Tag community-general: discuss the collection itself, instead of specific modules or plugins.
    • Social Spaces: gather and interact with fellow enthusiasts.
    • News & Announcements: track project-wide announcements including social events.
  • The Ansible Bullhorn newsletter: used to announce releases and important changes.

For more information about communication, see the Ansible communication guide.

Tested with Ansible

Tested with the current ansible-core 2.18, ansible-core 2.19, ansible-core 2.20, ansible-core 2.21 releases and the current development version of ansible-core. Ansible-core versions before 2.18.0 are not supported. This includes all ansible-base 2.10 and Ansible 2.9 releases.

External requirements

Some modules and plugins require external libraries. Please check the requirements for each plugin or module you use in the documentation to find out which requirements are needed.

Included content

Please check the included content on the Ansible Galaxy page for this collection or the documentation on the Ansible docs site.

Using this collection

This collection is shipped with the Ansible package. So if you have it installed, no more action is required.

If you have a minimal installation (only Ansible Core installed) or you want to use the latest version of the collection along with the whole Ansible package, you need to install the collection from Ansible Galaxy manually with the ansible-galaxy command-line tool:

ansible-galaxy collection install community.general

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml using the format:

collections:
- name: community.general

Note that if you install the collection manually, it will not be upgraded automatically when you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:

ansible-galaxy collection install community.general --upgrade

You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax where X.Y.Z can be any available version:

ansible-galaxy collection install community.general:==X.Y.Z

See Ansible Using collections for more details.

Contributing to this collection

The content of this collection is made by good people just like you, a community of individuals collaborating on making the world better through developing automation software.

We are actively accepting new contributors.

All types of contributions are very welcome.

You don't know how to start? Refer to our contribution guide!

The current maintainers are listed in the commit-rights.md file. If you have questions or need help, feel free to mention them in the proposals.

You can find more information in the developer guide for collections, and in the Ansible Community Guide.

Also for some notes specific to this collection see our CONTRIBUTING documentation.

Running tests

See here.

Collection maintenance

To learn how to maintain / become a maintainer of this collection, refer to:

It is necessary for maintainers of this collection to be subscribed to:

  • The collection itself (the Watch button → All Activity in the upper right corner of the repository's homepage).
  • The "Changes Impacting Collection Contributors and Maintainers" issue.

They also should be subscribed to Ansible's The Bullhorn newsletter.

Publishing New Version

See Releasing collections with release branches to learn how to release this collection.

Release notes

See the changelog.

Roadmap

In general, we plan to release a major version every six months, and minor versions every two months. Major versions can contain breaking changes, while minor versions only contain new features and bugfixes.

See this issue for information on releasing, versioning, and deprecation.

More information

Licensing

This collection is primarily licensed and distributed as a whole under the GNU General Public License v3.0 or later.

See LICENSES/GPL-3.0-or-later.txt for the full text.

Parts of the collection are licensed under the BSD 2-Clause license and the MIT license.

All files have a machine readable SDPX-License-Identifier: comment denoting its respective license(s) or an equivalent entry in an accompanying .license file. Only changelog fragments (which will not be part of a release) are covered by a blanket statement in REUSE.toml. This conforms to the REUSE specification.