AnsibleMetrics: A Python library for measuring Infrastructure-as-Code blueprints in Ansible

Stefano Dalla Palma, Dario Di Nucci, Damian A. Tamburri

Research output: Contribution to journalArticleScientificpeer-review


Infrastructure-as-Code (IaC) has recently received increasing attention in the research community, mainly due to the paradigm shift it brings in software design, development, and operations management. However, while IaC represents an ever-increasing and widely adopted practice, concerns arise about the need for instruments that help DevOps engineers efficiently maintain, speedily evolve, and continuously improve Infrastructure-as-Code. In this paper, we present AnsibleMetrics, a Python-based static source code measurement tool to characterize Infrastructure-as-Code. Although we focus on Ansible, the most used language for IaC, our tool could be easily extended to support additional formats. AnsibleMetrics represents a step forward towards software quality support for DevOps engineers developing and maintaining infrastructure code.
Original languageEnglish
Number of pages6
Publication statusPublished - 2020


  • Infrastructure as Code
  • Software metrics
  • Software quality


Dive into the research topics of 'AnsibleMetrics: A Python library for measuring Infrastructure-as-Code blueprints in Ansible'. Together they form a unique fingerprint.

Cite this