From 2d1330125009aeba3b21e2623dab13d5276bd70f Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Sat, 4 May 2024 18:20:21 +0200 Subject: [PATCH] updated user-input matching --- tasks/debian/rm_site.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/debian/rm_site.yml b/tasks/debian/rm_site.yml index 2139e54..e4fd140 100644 --- a/tasks/debian/rm_site.yml +++ b/tasks/debian/rm_site.yml @@ -14,7 +14,7 @@ state: absent when: > force_removal or - removal_prompt.user_input == 'yes' + removal_prompt.user_input | bool loop: - "/etc/apache2/sites-enabled/site_{{ name }}.conf" - "/etc/apache2/sites-available/site_{{ name }}.conf" @@ -30,4 +30,4 @@ when: > site.mode == 'serve' and (force_removal or - removal_prompt.user_input == 'yes') + removal_prompt.user_input | bool)