From 88e70d3fd0790a217cfc621fdcff11db4ea227be Mon Sep 17 00:00:00 2001 From: laszlojau <49835454+laszlojau@users.noreply.github.com> Date: Fri, 24 May 2024 04:39:21 +0930 Subject: [PATCH] Support the new generic cis profile (#187) --- roles/rke2_common/tasks/cis-hardening.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/rke2_common/tasks/cis-hardening.yml b/roles/rke2_common/tasks/cis-hardening.yml index f85baa5..5553a8a 100644 --- a/roles/rke2_common/tasks/cis-hardening.yml +++ b/roles/rke2_common/tasks/cis-hardening.yml @@ -1,7 +1,7 @@ --- - name: CIS MODE become: yes - when: rke2_config.profile | default("") | regex_search('cis-\\d+.\\d+') + when: rke2_config.profile | default("") | regex_search('^cis(-\\d+.\\d+)?$') block: - name: Create etcd group