Actions will be run on every bw apply. They differ from regular items in that they cannot be "correct" in the first place. They can only succeed or fail.

actions = {
    'check_if_its_still_linux': {
        'command': "uname",
        'expected_return_code': 0,
        'expected_stdout': "Linux\n",

Attribute reference

See also: The list of generic builtin item attributes


The only required attribute. This is the command that will be run on the node with root privileges.


Defaults to 0. If the return code of your command is anything else, the action is considered failed. You can also set this to None and any return code will be accepted.


If this is given, the stdout output of the command must match the given string or the action is considered failed.


Same as expected_stdout, but with stderr.


If set to True, this action will be skipped in non-interactive mode. If set to False, this action will always be executed without asking (even in interactive mode). Defaults to None.

Think hard before setting this to False. People might assume that interactive mode won't do anything without their consent.