Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2026 16:39:49 +0000
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b36cd4de4306 - main - sysutils/ansible-sshjail: Fix at runtime with latest ansible
Message-ID:  <69dd1c55.26c01.6d896f0e@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b36cd4de43061b1dd87048aaa56cf886e07b71e6

commit b36cd4de43061b1dd87048aaa56cf886e07b71e6
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2026-04-13 16:38:37 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2026-04-13 16:38:37 +0000

    sysutils/ansible-sshjail: Fix at runtime with latest ansible
    
    Import patch from upstream Pull request to allow it to work properly
    with new ansible release.
    
    Obtained from:  https://github.com/austinhyde/ansible-sshjail/pull/46
---
 sysutils/ansible-sshjail/Makefile               |  1 +
 sysutils/ansible-sshjail/files/patch-sshjail.py | 96 +++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/sysutils/ansible-sshjail/Makefile b/sysutils/ansible-sshjail/Makefile
index 1fa1e8d2d917..d972fae6ffc1 100644
--- a/sysutils/ansible-sshjail/Makefile
+++ b/sysutils/ansible-sshjail/Makefile
@@ -2,6 +2,7 @@ PORTNAME=	ansible-sshjail
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.1.0-48
 DISTVERSIONSUFFIX=	-ga7b0076
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	madpilot@FreeBSD.org
diff --git a/sysutils/ansible-sshjail/files/patch-sshjail.py b/sysutils/ansible-sshjail/files/patch-sshjail.py
new file mode 100644
index 000000000000..62873721b8a3
--- /dev/null
+++ b/sysutils/ansible-sshjail/files/patch-sshjail.py
@@ -0,0 +1,96 @@
+From ed8a73bae935f851111241e34338bcc708888ad4 Mon Sep 17 00:00:00 2001
+From: Geoffroy Desvernay <dgeo@centrale-med.fr>
+Date: Sun, 15 Feb 2026 15:28:19 +0100
+Subject: [PATCH] add missing parameters definitions
+
+Fix errors with ansible 2.19
+
+should fix #45
+---
+ sshjail.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 50 insertions(+), 2 deletions(-)
+
+diff --git a/sshjail.py b/sshjail.py
+index 3938a5c..b16a9cc 100644
+--- sshjail.py
++++ sshjail.py
+@@ -54,6 +54,21 @@
+           vars:
+               - name: ansible_password
+               - name: ansible_ssh_pass
++      password_mechanism:
++          description: Mechanism to use for handling ssh password prompt
++          type: string
++          default: ssh_askpass
++          choices:
++              - ssh_askpass
++              - sshpass
++              - disable
++          version_added: '2.19'
++          env:
++              - name: ANSIBLE_SSH_PASSWORD_MECHANISM
++          ini:
++              - {key: password_mechanism, section: ssh_connection}
++          vars:
++              - name: ansible_ssh_password_mechanism
+       sshpass_prompt:
+           description: Password prompt that sshpass should search for. Supported by sshpass 1.06 and up
+           default: ''
+@@ -225,7 +240,30 @@
+           vars:
+             - name: ansible_private_key_file
+             - name: ansible_ssh_private_key_file
+-
++          cli:
++            - name: private_key_file
++              option: --private-key
++      private_key:
++          description:
++            - Private key contents in PEM format. Requires the C(SSH_AGENT) configuration to be enabled.
++          type: string
++          env:
++            - name: ANSIBLE_PRIVATE_KEY
++          vars:
++            - name: ansible_private_key
++            - name: ansible_ssh_private_key
++          version_added: '2.19'
++      private_key_passphrase:
++          description:
++            - Private key passphrase, dependent on O(private_key).
++            - This does NOT have any effect when used with O(private_key_file).
++          type: string
++          env:
++            - name: ANSIBLE_PRIVATE_KEY_PASSPHRASE
++          vars:
++            - name: ansible_private_key_passphrase
++            - name: ansible_ssh_private_key_passphrase
++          version_added: '2.19'
+       control_path:
+         description:
+           - This is the location to save ssh's ControlPath sockets, it uses ssh's variable substitution.
+@@ -302,7 +340,6 @@
+         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}
+@@ -329,6 +366,17 @@
+         cli:
+             - name: timeout
+         type: integer
++      verbosity:
++        version_added: '2.19'
++        default: 0
++        type: int
++        description:
++          - Requested verbosity level for the SSH CLI.
++        env: [{name: ANSIBLE_SSH_VERBOSITY}]
++        ini:
++          - {key: verbosity, section: ssh_connection}
++        vars:
++          - name: ansible_ssh_verbosity
+ '''
+ 
+ try:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69dd1c55.26c01.6d896f0e>