Skip to content
Snippets Groups Projects
Commit e1d4f22e authored by Adrian Reyer's avatar Adrian Reyer
Browse files

ansible current version in nix-shell

parent a06ffabe
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ pip: ...@@ -14,7 +14,7 @@ pip:
Then, install requirements from Ansible Galaxy: 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 #### Using nix
...@@ -44,12 +44,12 @@ Host *.ffs03 ...@@ -44,12 +44,12 @@ Host *.ffs03
To deploy everything everywhere: 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 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. where `example.com` denotes the hostname as defined in the inventory directory.
......
...@@ -20,16 +20,16 @@ ...@@ -20,16 +20,16 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1635350005, "lastModified": 1737299813,
"narHash": "sha256-tAMJnUwfaDEB2aa31jGcu7R7bzGELM9noc91L2PbVjg=", "narHash": "sha256-Qw2PwmkXDK8sPQ5YQ/y/icbQ+TYgbxfjhgnkNJyT1X8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1c1f5649bb9c1b0d98637c8c365228f57126f361", "rev": "107d5ef05c0b1119749e381451389eded30fb0d5",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "NixOS",
"ref": "nixos-20.09", "ref": "nixos-24.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# $ nix flake update --recreate-lock-file # $ nix flake update --recreate-lock-file
inputs = { inputs = {
flake-utils.url = "github:numtide/flake-utils"; 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 }: outputs = { self, nixpkgs, flake-utils }:
......
...@@ -13,8 +13,10 @@ with pkgs; ...@@ -13,8 +13,10 @@ with pkgs;
mkShell { mkShell {
name = "ansible-shell"; name = "ansible-shell";
buildInputs = [ buildInputs = [
ansible_2_10 ansible
ansible-lint ansible-lint
bash
direnv
git-crypt git-crypt
sshpass sshpass
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment