upgrade ansible to 2.8.0.dev0

This commit is contained in:
Sergey Bubnov 2018-10-25 15:31:42 +04:00
parent 86580b04ee
commit 9241be86f3
2 changed files with 16 additions and 2 deletions

View File

@ -12,14 +12,16 @@ pythonPackages.buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ansible";
repo = "ansible";
rev = "f0fd0f219de80a8f682b80e1ccdb83fd4988da64";
sha256 = "128847r4bc650lcpc2z1wxjgdnh07zhxfd9m2bi3wfl069dvhjk9";
rev = "1724b633f2fdc4c8d49e634d44864ef5e2e2d4c6";
sha256 = "0lnql1ilcz174c0vy9hz8wa099x4z253izf55akji5b6ng31yqkv";
};
prePatch = ''
sed -i "s,/usr/,$out," lib/ansible/constants.py
'';
patches = [ ./revert_path_check.patch ];
doCheck = false;
dontStrip = true;
dontPatchELF = true;

View File

@ -0,0 +1,12 @@
--- a/lib/ansible/plugins/connection/local.py 1970-01-01 00:00:01.000000000 +0000
+++ b/lib/ansible/plugins/connection/local.py 2018-10-25 11:19:32.820130379 +0000
@@ -65,10 +65,6 @@
executable = C.DEFAULT_EXECUTABLE.split()[0] if C.DEFAULT_EXECUTABLE else None
- if not os.path.exists(to_bytes(executable, errors='surrogate_or_strict')):
- raise AnsibleError("failed to find the executable specified %s."
- " Please verify if the executable exists and re-try." % executable)
-
display.vvv(u"EXEC {0}".format(to_text(cmd)), host=self._play_context.remote_addr)
display.debug("opening command with Popen()")