Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teto/ansible2nix
https://github.com/teto/ansible2nix
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/teto/ansible2nix
- Owner: teto
- License: gpl-3.0
- Created: 2021-11-05T09:59:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T18:28:36.000Z (3 months ago)
- Last Synced: 2024-10-11T23:40:15.449Z (about 1 month ago)
- Language: Python
- Size: 32.2 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.nixnix-build -A
```
add to your derivation:
```
ANSIBLE_COLLECTIONS_PATH = ansibleGenerateCollection pkgs.ansible (import ./requirements.nix);
```