From e1d4f22e9b13c406b8feccdc9138b408850c08fa Mon Sep 17 00:00:00 2001
From: Adrian Reyer <are@lihas.de>
Date: Mon, 20 Jan 2025 09:16:12 +0100
Subject: [PATCH] ansible current version in nix-shell

---
 README.md  | 6 +++---
 flake.lock | 8 ++++----
 flake.nix  | 2 +-
 shell.nix  | 4 +++-
 4 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/README.md b/README.md
index 74649a0..1eb0f92 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ pip:
 Then, install requirements from Ansible Galaxy:
 
 ```
-ansible-galaxy install -r requirements.yml
+LC_ALL=C.UTF-8 ansible-galaxy install -r requirements.yml
 ```
 
 #### Using nix
@@ -44,12 +44,12 @@ Host *.ffs03
 
 To deploy everything everywhere:
 ```
-ansible-playbook -v -i inventory/ all.yml
+LC_ALL=C.UTF-8 ansible-playbook -v -i inventory/ all.yml
 ```
 
 To deploy everything on a single host
 ```
-ansible-playbook -v -i inventory/test --limit example.com all.yml
+LC_ALL=C.UTF-8 ansible-playbook -v -i inventory/test --limit example.com all.yml
 ```
 
 where `example.com` denotes the hostname as defined in the inventory directory.
diff --git a/flake.lock b/flake.lock
index 7c5f739..0620a4a 100644
--- a/flake.lock
+++ b/flake.lock
@@ -20,16 +20,16 @@
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1635350005,
-        "narHash": "sha256-tAMJnUwfaDEB2aa31jGcu7R7bzGELM9noc91L2PbVjg=",
+        "lastModified": 1737299813,
+        "narHash": "sha256-Qw2PwmkXDK8sPQ5YQ/y/icbQ+TYgbxfjhgnkNJyT1X8=",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "1c1f5649bb9c1b0d98637c8c365228f57126f361",
+        "rev": "107d5ef05c0b1119749e381451389eded30fb0d5",
         "type": "github"
       },
       "original": {
         "owner": "NixOS",
-        "ref": "nixos-20.09",
+        "ref": "nixos-24.11",
         "repo": "nixpkgs",
         "type": "github"
       }
diff --git a/flake.nix b/flake.nix
index 0565344..22196a3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,7 +5,7 @@
   # $ nix flake update --recreate-lock-file
   inputs = {
     flake-utils.url = "github:numtide/flake-utils";
-    nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";
+    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
   };
 
   outputs = { self, nixpkgs, flake-utils }:
diff --git a/shell.nix b/shell.nix
index 6ab9c17..afa7dca 100644
--- a/shell.nix
+++ b/shell.nix
@@ -13,8 +13,10 @@ with pkgs;
 mkShell {
   name = "ansible-shell";
   buildInputs = [
-    ansible_2_10
+    ansible
     ansible-lint
+    bash
+    direnv
     git-crypt
     sshpass
   ];
-- 
GitLab