Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ara_playbook/ara_record: set BYPASS_HOST_LOOP to run once #274

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ara/plugins/action/ara_playbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 3 additions & 0 deletions ara/plugins/action/ara_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down