mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-08-10 00:48:43 +02:00
feat(macro): to use in several state
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{%- if config.command is string -%}
|
||||
{{ for_user }} {{ config.privileges }}: {{ config.command }}
|
||||
{%- else -%}
|
||||
{% for command in config.command -%}
|
||||
{{ for_user }} {{ config.privileges }}: {{ command }}
|
||||
{% endfor %}
|
||||
{%- endif -%}
|
||||
Reference in New Issue
Block a user