diff --git a/ara/plugins/action/ara_playbook.py b/ara/plugins/action/ara_playbook.py index 33da11e9..f6dc4c0c 100644 --- a/ara/plugins/action/ara_playbook.py +++ b/ara/plugins/action/ara_playbook.py @@ -67,6 +67,9 @@ class ActionModule(ActionBase): """ Retrieves either a specific playbook from ARA or the one currently running """ TRANSFERS_FILES = False + # BYPASS_HOST_LOOP functions like a forced "run_once" on a task + # We don't need to run this module for every host. + BYPASS_HOST_LOOP = True VALID_ARGS = frozenset(("playbook_id")) def __init__(self, *args, **kwargs): diff --git a/ara/plugins/action/ara_record.py b/ara/plugins/action/ara_record.py index 2edf3ddf..3c8b881d 100644 --- a/ara/plugins/action/ara_record.py +++ b/ara/plugins/action/ara_record.py @@ -135,6 +135,9 @@ class ActionModule(ActionBase): """ Record persistent data as key/value pairs in ARA """ TRANSFERS_FILES = False + # BYPASS_HOST_LOOP functions like a forced "run_once" on a task + # We don't need to run this module for every host. + BYPASS_HOST_LOOP = True VALID_ARGS = frozenset(("playbook_id", "key", "value", "type")) VALID_TYPES = ["text", "url", "json", "list", "dict"]