This basic connector implements testconnection and installcertificatebundle routes. Both communicate with AAP/AWX, and the installation one is capable of starting a job template with a specific ID.
Certificates are passed as extra variables to the job. As AAP doesn't support arrays as parameters, the certificate chain is passed as a |-delimited string.
Note: Survery variables need to be configured on the AAP/AWX side. `
- name: Extract and display certificate information
hosts: localhost
gather_facts: false
tasks:
- name: Decode base64-encoded certificate
ansible.builtin.copy:
dest: "/tmp/temp_cert.pem"
content: "{{ certificate | b64decode }}"
register: cert_file
- name: Retrieve certificate information
community.crypto.x509_certificate_info:
path: "/tmp/temp_cert.pem"
register: cert_info
- name: Display certificate information
ansible.builtin.debug:
var: cert_info- Implement a basic PoC
- Create a basic
manifest.json - Clean up unnecessary types
- Figure out how to handle
installcertificatebundlevsconfigureinstallationendpoint - Remove certificate discovery as it doesn't make sense Ansible-wise
- Finalize the parameters in
manifest.json