Sorted instruction definitions

This commit is contained in:
Emmanuel BENOîT 2022-09-18 09:45:38 +02:00
parent 446280ab6e
commit 2fd5ba9bb4

View file

@ -97,14 +97,14 @@ INSTR_COMMON_FIELDS = ("when", "loop", "loop_var", "action", "run_once")
"""Fields that may be present on all instructions."""
INSTR_OWN_FIELDS = {
"create_group": ("group", "parent", "add_host"),
"add_host": ("group",),
"add_child": ("group", "child"),
"set_var": ("name", "value"),
"set_fact": ("name", "value"),
"stop": (),
"fail": ("msg",),
"add_host": ("group",),
"block": ("block", "rescue", "always", "locals"),
"create_group": ("group", "parent", "add_host"),
"fail": ("msg",),
"set_fact": ("name", "value"),
"set_var": ("name", "value"),
"stop": (),
}
"""Fields that are specific to each instruction."""