Ansible – Copy file from node to remote

In this post, I will show you how to read a certificate request file and extract some informations. In the current case, the information is the Subject Alternate Name. If SAN have been specified in the CSR, it will be shown in the message output using a custom XML format.

The module openssl_csr_info is quite new. This module has been introduced with the latest Ansible version (2.8). The documentation is available here.

The following playbook has been tested with a 2048 bits CSR file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By :