From 7c73f2dec173fb8f3eef3894197c54499b3f689c Mon Sep 17 00:00:00 2001 From: Noriko Hosoi Date: Wed, 15 Mar 2023 17:45:12 -0700 Subject: [PATCH] Fingerprint RHEL System Role managed config files - Add role name to the generated config files. # system_role:cockpit Signed-off-by: Noriko Hosoi --- templates/cockpit.conf.j2 | 1 + tests/tests_config.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/templates/cockpit.conf.j2 b/templates/cockpit.conf.j2 index e52a7ba..4fbf6a8 100644 --- a/templates/cockpit.conf.j2 +++ b/templates/cockpit.conf.j2 @@ -1,4 +1,5 @@ {{ ansible_managed | comment }} +{{ "system_role:cockpit" | comment(prefix="", postfix="") }} {% if cockpit_config is defined %} {% for section, config in cockpit_config.items() | sort(attribute=0) %} [{{ section }}] diff --git a/tests/tests_config.yml b/tests/tests_config.yml index 9f3a567..beb33d3 100644 --- a/tests/tests_config.yml +++ b/tests/tests_config.yml @@ -53,6 +53,8 @@ # # Ansible managed # + # system_role:cockpit + [Session] IdleTimeout = 60