manager

Provides the manager class, which contains the toplevel logic of simple_automation and provides the CLI interface.

Classes

Manager(inventory_class[, main_directory])

A class that manages a set of global variables, hosts, groups, and tasks.

ThrowingArgumentParser([prog, usage, …])

An argument parser that throws when invalid argument types are passed.

Exceptions

ArgumentParserError

Error class for argument parsing errors.

Functions

simple_automation.manager.run_inventory(inventory_class, main_directory=None)

Instanciates a manager given an inventory class and runs the manager’s CLI.

Parameters
  • inventory_class (str) – The inventory class to instanciate.

  • main_directory (str, optional) – The main directory of the script. Will be used to determine relative paths. If set to None, it will be set to the directory of the executed script file.