Ansible Tower-自定义凭据中的密码短语

Ansible Tower-自定义凭据中的密码短语,ansible,passphrase,Ansible,Passphrase,我正在使用ansible git模块克隆bitbucket存储库。我使用的不是用户名和密码,而是私钥 我的私钥由密码短语生成和保护 我的密钥使用bitbucket配置良好。我能够从后端克隆存储库而不出现任何问题 当我试图在剧本中使用git模块的键时,问题就出现了。我将bitbucket自定义凭据用于以下输入和注入配置。 输入配置: fields: - multiline: true secret: true type: string id: bitbucket

我正在使用ansible git模块克隆bitbucket存储库。我使用的不是用户名和密码,而是私钥

我的私钥由密码短语生成和保护

我的密钥使用bitbucket配置良好。我能够从后端克隆存储库而不出现任何问题

当我试图在剧本中使用git模块的键时,问题就出现了。我将bitbucket自定义凭据用于以下输入和注入配置。 输入配置:

fields:
  -  multiline: true
     secret: true
     type: string
     id: bitbucket_private_key
     label: Custome Bitbucket Private Key
extra_vars:
  bitbucket_key: "{{tower.filename.scm_key}}"
file: 
  template.scm_key: "{{bitbucket_private_key}}"
喷油器配置:

fields:
  -  multiline: true
     secret: true
     type: string
     id: bitbucket_private_key
     label: Custome Bitbucket Private Key
extra_vars:
  bitbucket_key: "{{tower.filename.scm_key}}"
file: 
  template.scm_key: "{{bitbucket_private_key}}"
我使用的帐户是服务帐户,因此密钥受密码短语保护

如果我使用没有密码短语的私钥,它绝对可以正常工作。但如果我使用带有密码短语的私钥,我总是会被拒绝使用git模块进行克隆

有人能帮我“如何使用私钥和密码短语配置自定义凭据”或任何其他解决方案吗

提前谢谢