ansible: update to 2.3.1.0 (#6584)
This commit is contained in:
parent
c339e955cf
commit
a8f74c1368
|
@ -1,21 +0,0 @@
|
||||||
From 0dd0600a6be610a6eeec68332e10e18fb1560304 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Matt Martz <matt@sivel.net>
|
|
||||||
Date: Tue, 18 Apr 2017 11:34:07 -0500
|
|
||||||
Subject: [PATCH] When become_method is su, self._play_context.prompt is a
|
|
||||||
function. Fixes #23689
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/ansible/plugins/connection/__init__.py | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
--- lib/ansible/plugins/connection/__init__.py.orig
|
|
||||||
+++ lib/ansible/plugins/connection/__init__.py
|
|
||||||
@@ -258,6 +258,8 @@ def check_password_prompt(self, b_output):
|
|
||||||
if not b_lines:
|
|
||||||
return False
|
|
||||||
return b_lines[-1].strip().endswith(b_prompt) or b_lines[0].strip().endswith(b_prompt)
|
|
||||||
+ else:
|
|
||||||
+ return self._play_context.prompt(b_output)
|
|
||||||
|
|
||||||
def check_incorrect_password(self, b_output):
|
|
||||||
b_incorrect_password = to_bytes(gettext.dgettext(self._play_context.become_method, C.BECOME_ERROR_STRINGS[self._play_context.become_method]))
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ansible'
|
# Template file for 'ansible'
|
||||||
pkgname=ansible
|
pkgname=ansible
|
||||||
version=2.3.0.0
|
version=2.3.1.0
|
||||||
revision=2
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python2-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
|
@ -13,7 +13,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="GPL-3"
|
license="GPL-3"
|
||||||
homepage="https://www.ansible.com/"
|
homepage="https://www.ansible.com/"
|
||||||
distfiles="https://releases.ansible.com/ansible/${pkgname}-${version}.tar.gz"
|
distfiles="https://releases.ansible.com/ansible/${pkgname}-${version}.tar.gz"
|
||||||
checksum=299f3907cd566a20e163942fa82b6afc86ef89c2726ba503b90c1a651e82a458
|
checksum=cd4b8f53720fcd0c351156b840fdd15ecfbec22c951b5406ec503de49d40b9f5
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
for f in examples/*; do
|
for f in examples/*; do
|
||||||
|
|
Loading…
Reference in New Issue