Ansible playbook to install npm and less on Webfaction
✓ Published0🌍 Public
Aandybak
Last edited May 9, 2015
Created on May 9, 2015
This visualization shows an Ansible playbook that automates the installation of npm and the Less compiler on a Webfaction server. It displays the sequential task structure, where each step checks for npm’s presence, downloads and builds Node.js from source if missing, and finally installs Less globally. The code uses Ansible’s `shell`, `command`, `file`, `get_url`, and `npm` modules, with conditional execution via `when` clauses and registered variables like `npm_version`. The playbook’s branching logic—skipping compilation when npm already exists—is visible through the task flow.
AI-generated description