3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/ansible/default.nix

28 lines
829 B
Nix
Raw Normal View History

{ python3Packages, fetchurl }:
2019-11-06 15:42:55 +00:00
rec {
ansible = ansible_2_9;
2019-11-06 15:42:55 +00:00
ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible;
ansible_2_8 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
2019-11-06 15:42:55 +00:00
pname = "ansible";
2020-05-18 00:25:58 +01:00
version = "2.8.12";
2019-11-06 15:42:55 +00:00
src = fetchurl {
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
2020-05-18 00:25:58 +01:00
sha256 = "091id1da3hlnmf0hwvrhv2r0mnyna3mc6s7rwdg5kll7yfiy4k1a";
2019-11-06 15:42:55 +00:00
};
}));
2019-05-18 09:59:35 +01:00
ansible_2_7 = python3Packages.toPythonApplication (python3Packages.ansible.overridePythonAttrs (old: rec {
2019-05-18 09:59:35 +01:00
pname = "ansible";
2020-05-18 00:27:40 +01:00
version = "2.7.18";
2019-05-18 09:59:35 +01:00
src = fetchurl {
url = "https://releases.ansible.com/ansible/${pname}-${version}.tar.gz";
2020-05-18 00:27:40 +01:00
sha256 = "0sgshaaqyjq3i035yi5hivmrrwrq05hxrbjrv1w3hfzmvljn41d1";
2019-05-18 09:59:35 +01:00
};
}));
}