Note
This filter plugin is part of the community.sops collection (version 2.2.1).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.sops.
To use it in a playbook, specify: community.sops._latest_version.
New in community.sops 1.4.0
This describes the input of the filter, the value before | community.sops._latest_version.
Parameter | Comments |
|---|---|
Input list / elements=string / required | A list of strings. Every string must be a version number. |
---
- name: Print latest version
ansible.builtin.debug:
msg: "{{ versions | community.sops._latest_version }}"
vars:
versions:
- 1.0.0
- 1.0.0rc1
- 1.1.0
Key | Description |
|---|---|
Return value string | The latest version from the input. Returns the empty string if the input was empty. Returned: success |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/sops/_latest_version_filter.html