public class AnsibleWorker extends Object
| Constructor and Description |
|---|
AnsibleWorker(File root) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(Role r) |
void |
apply(PrintStream ps) |
void |
destroy()
Destroy the worker:
- remove the working dir
|
void |
ensureWorkStructure() |
File |
getInventoryFile() |
File |
getPlaybookFile() |
File |
getRolesDir() |
File |
getWorkdir() |
String |
getWorkerId() |
void |
removeWorkStructure() |
void |
setInventory(Inventory inventory) |
void |
setPlaybook(Playbook playbook) |
public AnsibleWorker(File root)
public File getWorkdir()
public File getRolesDir()
public String getWorkerId()
public void ensureWorkStructure()
public void removeWorkStructure()
public File getPlaybookFile()
public File getInventoryFile()
public void setInventory(Inventory inventory) throws IOException
IOExceptionpublic void setPlaybook(Playbook playbook) throws IOException
IOExceptionpublic void addRole(Role r) throws IOException
IOExceptionpublic void apply(PrintStream ps) throws IOException
IOExceptionpublic void destroy()
Copyright © 2017. All Rights Reserved.