IBM / ansible-for-i

the tool is to provide several customized modules for Ansible to manage IBM i systems.
GNU General Public License v3.0
55 stars 51 forks source link

Certificate upload using Ansible #136

Open spirjade opened 2 years ago

spirjade commented 2 years ago

Hello,

Do you anyway to upload certificate on IBMi using ansible?

changlexc commented 2 years ago

Do you mean upload a certificate file to an IFS directory? I think both Ansible Core itself and IBMi collection have modules to support that. If you mean upload certificate or create the certificate by DCM of IBMi, I don't think we support that now.

spirjade commented 2 years ago

Thanks for your reply.

Today we are importing and assigning certificate using DCM. We want to automate this part. Do we have any ansible module on IBMi which can automate this importing/assigning of certificate by DCM.

LiJunBJZhu commented 2 years ago

We don't have a module to support DCM stuff now. However, you may create a few playbooks and leverage some DCM tools. For example, there is non-official tool https://github.com/ThePrez/DCM-tools. You may create some Ansible playbooks to setup the tool on your IBM i systems, then call the commands provided by the tool to import/export certificate to/from DCM. Again, the tool is currently still under development and without complete testing. Proceed at your own risk.