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