Replace Nix-based ansible-lint
This commit is contained in:
parent
78c13e41a6
commit
9121b5edc0
@ -4,6 +4,7 @@ type: docker
|
|||||||
name: ansible
|
name: ansible
|
||||||
steps:
|
steps:
|
||||||
- name: ansible-lint
|
- name: ansible-lint
|
||||||
image: nixos/nix:2.11.0
|
image: python:3.10.7
|
||||||
commands:
|
commands:
|
||||||
- nix run -c ansible-lint ansible
|
- pip install -r ansible/requirements.txt > /dev/null 2> /dev/null
|
||||||
|
- ansible-lint ansible
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
## Ansible Control Node Setup
|
## 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`
|
## `misc.yaml`
|
||||||
|
2
ansible/requirements.txt
Normal file
2
ansible/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ansible==6.4.0
|
||||||
|
ansible-lint==6.5.2
|
13
default.nix
13
default.nix
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
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