fix: output ansible is loaded after

This commit is contained in:
egarette@silique.fr 2025-01-02 21:55:23 +01:00
parent dd6d7caf97
commit 732355b996

View file

@ -24,22 +24,8 @@ def get_rougail_config(
"""get rougail config for ansible"""
# redefine ansible family if already exists (for output)
# or create a new only only for user data
options = [
"""
options = """
ansible:
exists: true
redefine: true
description: Configuration of user data or output Ansible
disabled:
type: jinja
jinja: |
{% if step.output != 'ansible' and 'ansible' not in step.user_data %}
disabled
{% endif %}
""",
"""
ansible:
exists: false
description: Configuration of user data Ansible
disabled:
type: jinja
@ -73,8 +59,7 @@ ansible:
{% if 'ansible' not in step.user_data %}
disabled
{% endif %}
""",
]
"""
return {
"name": "ansible",
"process": "user data",