updated user-input matching

This commit is contained in:
AnsibleGuy 2024-05-04 18:20:21 +02:00
parent 3efa639a11
commit 2d13301250
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
state: absent state: absent
when: > when: >
force_removal or force_removal or
removal_prompt.user_input == 'yes' removal_prompt.user_input | bool
loop: loop:
- "/etc/apache2/sites-enabled/site_{{ name }}.conf" - "/etc/apache2/sites-enabled/site_{{ name }}.conf"
- "/etc/apache2/sites-available/site_{{ name }}.conf" - "/etc/apache2/sites-available/site_{{ name }}.conf"
@ -30,4 +30,4 @@
when: > when: >
site.mode == 'serve' and site.mode == 'serve' and
(force_removal or (force_removal or
removal_prompt.user_input == 'yes') removal_prompt.user_input | bool)