ansible / awx-resource-operator

41 stars 34 forks source link

How to pass "ssh_key_unlock" in the input when creating a AnsibleCredentials ? #164

Open seb2020 opened 3 weeks ago

seb2020 commented 3 weeks ago

Hi,

I am running the operator in OpenShift 4.16.

Based on https://docs.ansible.com/ansible/latest/collections/awx/awx/credential_module.html#parameter-inputs, I can set in the "inputs" a key like "ssh_key_unlock" when creating a new AnsibleCredentials. How to use the field "Credential Inputs" in the operator ?

If I read https://github.com/ansible/awx-resource-operator/blob/270c21758d82a745376f9e38ac43d92380d0f593/roles/job_runner/tasks/credentials/create_ssh_credential.yml#L9, there is no other parameters available (only ssh_key_data and username) ?

Thanks

cooktheryan commented 3 weeks ago

correct the current parameters are very limited but the others can be added

seb2020 commented 3 weeks ago

What do you mean by "others can be added" ? Did you speak about add parameters in the playbook create_ssh_credential.yml or when creating the object in OpenShift ?

cooktheryan commented 3 weeks ago

The functionality of the operator in OpenShift. Additional paramters can be added in https://github.com/ansible/awx-resource-operator/blob/devel/roles/job_runner/tasks/credentials/create_ssh_credential.yml#L9-L12 . The work would need to be as a PR then we can add it for subsequent releases.