Class AnsibleInventory
- java.lang.Object
-
- it.andreascarpino.ansible.inventory.type.AnsibleInventory
-
public class AnsibleInventory extends Object
- Author:
- Andrea Scarpino
-
-
Constructor Summary
Constructors Constructor Description AnsibleInventory()
AnsibleInventory(List<AnsibleHost> hosts)
AnsibleInventory(List<AnsibleHost> hosts, List<AnsibleGroup> groups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroup(AnsibleGroup group)
void
addHost(AnsibleHost host)
void
clear()
AnsibleGroup
getGroup(String group)
Collection<AnsibleGroup>
getGroups()
AnsibleHost
getHost(String host)
Collection<AnsibleHost>
getHosts()
void
removeGroup(String group)
void
removeHost(String host)
-
-
-
Constructor Detail
-
AnsibleInventory
public AnsibleInventory()
-
AnsibleInventory
public AnsibleInventory(List<AnsibleHost> hosts)
-
AnsibleInventory
public AnsibleInventory(List<AnsibleHost> hosts, List<AnsibleGroup> groups)
-
-
Method Detail
-
getHosts
public Collection<AnsibleHost> getHosts()
-
getGroups
public Collection<AnsibleGroup> getGroups()
-
addHost
public void addHost(AnsibleHost host)
-
addGroup
public void addGroup(AnsibleGroup group)
-
getHost
public AnsibleHost getHost(String host)
-
getGroup
public AnsibleGroup getGroup(String group)
-
removeHost
public void removeHost(String host)
-
removeGroup
public void removeGroup(String group)
-
clear
public void clear()
-
-