Add pkcs11_provider defenition

Since we're leveraging native SSH connection plugin, we should
provide all supported parameters, otherwise plugin will fail with KeyError

Change-Id: I40d15cabf640d84d455d23286a25887c00aae52c
This commit is contained in:
Dmitriy Rabotyagov 2021-12-19 09:28:50 +02:00
parent 0146ef758d
commit 5b2b38ea1c
1 changed files with 11 additions and 0 deletions

View File

@ -270,6 +270,17 @@ DOCUMENTATION = '''
cli:
- name: timeout
type: integer
pkcs11_provider:
version_added: '2.12'
default: ""
description:
- "PKCS11 SmartCard provider such as opensc, example: /usr/local/lib/opensc-pkcs11.so"
- Requires sshpass version 1.06+, sshpass must support the -P option.
env: [{name: ANSIBLE_PKCS11_PROVIDER}]
ini:
- {key: pkcs11_provider, section: ssh_connection}
vars:
- name: ansible_ssh_pkcs11_provider
'''
import functools