@@ -587,6 +587,39 @@ in modules // {
587587 platforms = with platforms; [ linux darwin ];
588588 };
589589 };
590+
591+ ansible2 = buildPythonPackage rec {
592+ version = "v2.0.0_0.6.rc1";
593+ name = "ansible-${version}";
594+
595+ src = pkgs.fetchurl {
596+ url = "http://releases.ansible.com/ansible/ansible-2.0.0-0.6.rc1.tar.gz";
597+ sha256 = "0v7fqi7qg9lzvpsjlaw9rzas8n1cdsyp3y9jrqzjxs9nbknwcibd";
598+ };
599+
600+ prePatch = ''
601+ sed -i "s,/usr/,$out," lib/ansible/constants.py
602+ '';
603+
604+ doCheck = false;
605+ dontStrip = true;
606+ dontPatchELF = true;
607+ dontPatchShebangs = true;
608+ windowsSupport = true;
609+
610+ propagatedBuildInputs = with self; [
611+ paramiko jinja2 pyyaml httplib2 boto six
612+ ] ++ optional windowsSupport pywinrm;
613+
614+ meta = with stdenv.lib; {
615+ homepage = "http://www.ansible.com";
616+ description = "A simple automation tool";
617+ license = with licenses; [ gpl3 ];
618+ maintainers = with maintainers; [ copumpkin ];
619+ platforms = with platforms; [ linux darwin ];
620+ };
621+ };
622+
590623 apipkg = buildPythonPackage rec {
591624 name = "apipkg-1.4";
592625