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:
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.
......
......@@ -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"
}
......
......@@ -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 }:
......
......@@ -13,8 +13,10 @@ with pkgs;
mkShell {
name = "ansible-shell";
buildInputs = [
ansible_2_10
ansible
ansible-lint
bash
direnv
git-crypt
sshpass
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment