Commit graph

8 commits

Author SHA1 Message Date
3f38940a9c
Restructured into a collection 2022-10-07 22:29:53 +02:00
4a56566c58
Use pre-commit with black + yamllint
* Added pre-commit config
  * Added yamllint config
  * Updated example YAML files to match the yamllint config
  * black'd existing Python code
2022-09-18 17:32:23 +02:00
f2d1e2da50 Implemented vars clause
* Can be used on any instruction
  * Variables are evaluated before condition is checked
2022-09-18 10:06:19 +02:00
446280ab6e run_once clause
When the run_once clause is present and set to a truthy value, the
instruction it is attached to will only be executed the first time it is
encountered.
2022-09-17 12:22:40 +02:00
89e450ff7e Example - Removed unnecessary add_host 2022-09-04 11:41:52 +02:00
7b44cdc731 create_group - add_host and parent options
* The `add_host` option can be used to add the current host to the
    group being created. It avoids having to use a separate `add_host`
    instruction in this case.
  * The `parent` option can specify the parent group. It avoids having
    to use a separate `add_child` instruction in this case.
2022-09-03 10:43:01 +02:00
5f719d7ab8 "block" instruction implemented
The "block" instruction allows mulitple instructions to be grouped in
order to be executed based on a single condition, in a common loop, with
a local variable scope. In addition, it provides a way to recover from
errors.
2022-09-02 20:26:36 +02:00
17aa8e8c46 Initial import of the WIP plugin 2022-09-02 18:00:22 +02:00