Use Nix instead of virtualenv
This commit is contained in:
parent
a86b3e6a43
commit
c7bcf2cddf
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
## Ansible Control Node Setup
|
## Ansible Control Node Setup
|
||||||
|
|
||||||
In a Python 3 environment (perhaps a venv):
|
Run in repository root to use `ansible-*` commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install -r requirements.txt
|
nix run -c $SHELL
|
||||||
```
|
```
|
||||||
|
|
||||||
## `misc.yaml`
|
## `misc.yaml`
|
||||||
|
13
default.nix
Normal file
13
default.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
pkgs ? import <nixpkgs> {}
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
paths = with pkgs; [
|
||||||
|
ansible
|
||||||
|
ansible-lint
|
||||||
|
];
|
||||||
|
in
|
||||||
|
pkgs.buildEnv {
|
||||||
|
name = "infrastructure-env";
|
||||||
|
paths = paths;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user