community / community.crypto / 2.18.0 / filter / split_pem Split PEM file contents into multiple objects | "added in version" 2.10.0 of community.crypto" Authors: Felix Fontein (@felixfontein)community.crypto.split_pem (2.18.0) — filter
Install with ansible-galaxy collection install community.crypto:==2.18.0
collections: - name: community.crypto version: 2.18.0
Split PEM file contents into multiple PEM objects. Comments or invalid parts are ignored.
- name: Print all CA certificates ansible.builtin.debug: msg: '{{ item }}' loop: >- {{ lookup('ansible.builtin.file', '/path/to/ca-bundle.pem') | community.crypto.split_pem }}
_input: description: - The PEM contents to split. required: true type: string
_value: description: - A list of PEM file contents. elements: string type: list