1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

alternatives: add support for "family" parameter (#9096)

* alternatives: added parsing and setting of 'family' for an alternative

* alternatives: added checks for path nullability

* alternatives: added idempotence when setting alternative using family

* alternatives: added family to diff mode

* alternatives: added tests for family

* alternatives: updated documentation and examples

* alternatives: added constraints for 'path' and 'family' parameters.

in any invariants at least one of the parameters must be specified

* alternatives: added changelog fragment

* removed unnecessary check

* added version

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Stanislav Shamilov 2024-11-16 19:34:09 +02:00 committed by GitHub
parent 737717d015
commit 523439ab62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 120 additions and 13 deletions

View file

@ -58,6 +58,12 @@
- include_tasks: remove_links.yml
- include_tasks: tests_state.yml
# Test for the family parameter
- block:
- include_tasks: remove_links.yml
- include_tasks: tests_family.yml
when: ansible_os_family == 'RedHat'
# Cleanup
always:
- include_tasks: remove_links.yml