ansible-purifier

Locked, Nix-resolved dependencies for Ansible and Galaxy collections.

Quickstart

Prerequisites: A project with Galaxy collection requirements in requirements.yml, An inventory and playbook matching the shown native command.

nix shell 'github:nix-purifiers/ansible-purifier'
ansible-purifier lock
ansible-playbook -i inventory playbook.yml

Commit the lockfiles: ansible-purifier.lock.json.

Development loop

Keep using native build and test commands in your working tree. After changing dependency selection, refresh the lock and prepare the selected dependencies:

ansible-purifier lock --update --project '<project_root>' --lock '<lockfile>'
ansible-purifier prefetch --project '<project_root>' --lock '<lockfile>'

Use the project directory and lockfile from your setup for the placeholders.

Using locked dependencies

Without an applicable purifier lock, the supplied wrapper warns and runs the tool with its usual dependency resolution.

Working offline

Prepare dependencies using the Quickstart workflow before disconnecting. The lock covers the recorded dependency downloads; downloads performed outside that lock need separate inputs.

Supported scope

Target systems

  • x86_64-linux
  • aarch64-linux

Dependency sources

  • Public Galaxy collection archives

Not supported

  • Roles, Git collections and private Galaxy servers without separate providers
  • Implicit installation of Python libraries or remote host packages

More information

Setup and activation · Version compatibility · Using locked dependencies · Working offline · Nix builds · Project projections.