Replace Nix-based ansible-lint
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ type: docker
|
||||
name: ansible
|
||||
steps:
|
||||
- name: ansible-lint
|
||||
image: nixos/nix:2.11.0
|
||||
image: python:3.10.7
|
||||
commands:
|
||||
- nix run -c ansible-lint ansible
|
||||
- pip install -r ansible/requirements.txt > /dev/null 2> /dev/null
|
||||
- ansible-lint ansible
|
||||
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
|
||||
## Ansible Control Node Setup
|
||||
|
||||
Run in repository root to use `ansible-*` commands:
|
||||
In a Python 3 environment (perhaps a venv), run:
|
||||
|
||||
```
|
||||
nix run -c $SHELL
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## `misc.yaml`
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ansible==6.4.0
|
||||
ansible-lint==6.5.2
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
{
|
||||
pkgs ? import <nixpkgs> {}
|
||||
}:
|
||||
let
|
||||
paths = with pkgs; [
|
||||
ansible
|
||||
ansible-lint
|
||||
];
|
||||
in
|
||||
pkgs.buildEnv {
|
||||
name = "infrastructure-env";
|
||||
paths = paths;
|
||||
}
|
||||
Reference in New Issue
Block a user