From 416d7dcc0c23f0d8a2e1b03d5ddbff1350dd2e66 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 27 Nov 2023 01:28:49 -0500 Subject: [PATCH] update conditional; it was not working live --- gitea.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gitea.yml b/gitea.yml index 8fea443..44b8d46 100644 --- a/gitea.yml +++ b/gitea.yml @@ -73,9 +73,15 @@ - /etc/gitea + - name: Debug ansible_virtualization_type + ansible.builtin.debug: + var: ansible_virtualization_type + verbosity: 1 + + - name: Manage Gitea service when: - - ansible_virtualization_type | select('match', '(?:podman|docker|container)') + - not ansible_virtualization_type | regex_search('(podman|docker|container)') block: - name: Deploy unit file for Gitea ansible.builtin.template: @@ -102,7 +108,7 @@ name : gitea state : restarted when: - - ansible_virtualization_type | select('match', '(?:podman|docker|container)') + - not ansible_virtualization_type | regex_search('(podman|docker|container)') ... -- 2.47.1