@@ -556,6 +556,37 @@ in modules // {
556556 };
557557 };
558558
559+ ansible = buildPythonPackage rec {
560+ version = "1.9.4";
561+ name = "ansible-${version}";
562+
563+ src = pkgs.fetchurl {
564+ url = "https://releases.ansible.com/ansible/${name}.tar.gz";
565+ sha256 = "1qvgzb66nlyc2ncmgmqhzdk0x0p2px09967p1yypf5czwjn2yb4p";
566+ };
567+
568+ prePatch = ''
569+ sed -i "s,/usr/,$out," lib/ansible/constants.py
570+ '';
571+
572+ doCheck = false;
573+ dontStrip = true;
574+ dontPatchELF = true;
575+ dontPatchShebangs = true;
576+ windowsSupport = true;
577+
578+ propagatedBuildInputs = with self; [
579+ paramiko jinja2 pyyaml httplib2 boto six
580+ ] ++ optional windowsSupport pywinrm;
581+
582+ meta = {
583+ homepage = "http://www.ansible.com";
584+ description = "A simple automation tool";
585+ license = with licenses; [ gpl3] ;
586+ maintainers = with maintainers; [ joamaki ];
587+ platforms = with platforms; [ linux darwin ];
588+ };
589+ };
559590 apipkg = buildPythonPackage rec {
560591 name = "apipkg-1.4";
561592