Class InventoryParser
java.lang.Object
com.scivicslab.actoriac.InventoryParser
Parser for Ansible inventory files in INI format.
This parser supports basic Ansible inventory file format with groups and variables. Example:
[webservers] web1.example.com web2.example.com [dbservers] db1.example.com [all:vars] ansible_user=admin ansible_port=22
- Author:
- devteam@scivics-lab.com
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a parsed Ansible inventory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryParser.Inventoryparse(InputStream input) Parses an Ansible inventory file.
-
Constructor Details
-
InventoryParser
public InventoryParser()
-
-
Method Details
-
parse
Parses an Ansible inventory file.- Parameters:
input- the input stream of the inventory file- Returns:
- the parsed inventory
- Throws:
IOException- if reading the file fails
-