Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teto/ansible2nix


https://github.com/teto/ansible2nix

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

        

# ansible2nix

This tool converts a requirements.yml such as:
```
collections:
- name: community.kubernetes
version: 1.1.1
- name: amazon.aws
version: 1.4.1
```
into a nix expression.

# Usage

`ansible2nix `

Example:
```
ansible2nix requirements.yml > requirements.nix

nix-build -A
```
add to your derivation:
```
ANSIBLE_COLLECTIONS_PATH = ansibleGenerateCollection pkgs.ansible (import ./requirements.nix);
```