summary refs log blame commit diff
path: root/pkgs/tools/admin/ansible/default.nix
blob: 6be403b9e5343dc5227dffc619d5474448da8850 (plain) (tree)
1
2
3
4
5
                                     
 
     
                         
 










                                                                                                                  
 
                                                                                  
 
                                                     

                                                                            
                                                                                                     
 
{ python3Packages, fetchFromGitHub }:

rec {
  ansible = ansible_2_12;

  ansible_2_12 = python3Packages.toPythonApplication python3Packages.ansible-core;

  ansible_2_11 = python3Packages.toPythonApplication (python3Packages.ansible-core.overridePythonAttrs (old: rec {
    pname = "ansible-core";
    version = "2.11.6";

    src = python3Packages.fetchPypi {
      inherit pname version;
      sha256 = "sha256-k9UCg8fFtHbev4PcCJs/Z5uTmouae11ijSjar7s9MDo=";
    };
  }));

  ansible_2_10 = python3Packages.toPythonApplication python3Packages.ansible-base;

  # End of support 2021/10/02, End of life 2021/12/31
  ansible_2_9 = python3Packages.toPythonApplication python3Packages.ansible;

  ansible_2_8 = throw "Ansible 2.8 went end of life on 2021/01/03 and has subsequently been dropped";
}