Replace Nix-based ansible-lint
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
Paul Brinkmeier 2022-09-15 06:04:38 +02:00
parent 78c13e41a6
commit 9121b5edc0
4 changed files with 7 additions and 17 deletions

View File

@ -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

View File

@ -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`

2
ansible/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
ansible==6.4.0
ansible-lint==6.5.2

View File

@ -1,13 +0,0 @@
{
pkgs ? import <nixpkgs> {}
}:
let
paths = with pkgs; [
ansible
ansible-lint
];
in
pkgs.buildEnv {
name = "infrastructure-env";
paths = paths;
}