From 732355b996477ca61bf8621e16933103b322f54e Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 2 Jan 2025 21:55:23 +0100 Subject: [PATCH] fix: output ansible is loaded after --- src/rougail/user_data_ansible/config.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/rougail/user_data_ansible/config.py b/src/rougail/user_data_ansible/config.py index c1d5923..5a8f818 100644 --- a/src/rougail/user_data_ansible/config.py +++ b/src/rougail/user_data_ansible/config.py @@ -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",