From 38fa45dda2821ad5f75c480acd8c3c55578b9bc6 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Sun, 26 Nov 2023 19:20:21 -0500 Subject: [PATCH] testing fix for issue #1 --- .gitignore | 1 + gitea.yml | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 2bfceae..fd579d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ facts.d/ hosts collections/ +.vscode \ No newline at end of file diff --git a/gitea.yml b/gitea.yml index 50449d5..913c93b 100644 --- a/gitea.yml +++ b/gitea.yml @@ -73,13 +73,9 @@ - /etc/gitea - - name: Debug ansible_virtualization_type - ansible.builtin.debug: - var: ansible_virtualization_type - - - name: Manage Gitea service - when: ansible_virtualization_type != "docker" + when: + - ansible_virtualization_type | select('match', '(?:podman|docker|container)') block: - name: Deploy unit file for Gitea ansible.builtin.template: @@ -105,7 +101,8 @@ ansible.builtin.service: name : gitea state : restarted - when: ansible_virtualization_type != "docker" + when: + - ansible_virtualization_type | select('match', '(?:podman|docker|container)') ...