Note
This filter plugin is part of the community.crypto collection (version 2.26.5).
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.crypto.
To use it in a playbook, specify: community.crypto.split_pem.
New in community.crypto 2.10.0
This describes the input of the filter, the value before | community.crypto.split_pem.
Parameter | Comments |
|---|---|
Input string / required | The PEM contents to split. |
---
- name: Print all CA certificates
ansible.builtin.debug:
msg: '{{ item }}'
loop: >-
{{ lookup('ansible.builtin.file', '/path/to/ca-bundle.pem') | community.crypto.split_pem }}
Key | Description |
|---|---|
Return value list / elements=string | A list of PEM file contents. 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/crypto/split_pem_filter.html