Skip to content

Commit a0b9c9d

Browse files
committed
Refactor to detect apache2 automatically
1 parent 25fa94a commit a0b9c9d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

defaults/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,3 @@ roundcube_carddav_version: 4.4.2
6363

6464
# Installer
6565
roundcube_enable_installer: false
66-
67-
# Apache
68-
roundcube_apache: true

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ansible.builtin.service:
1818
name: apache2
1919
state: restarted
20-
when: roundcube_apache | bool
20+
when: ansible_facts.services is search("apache2.service")
2121
notify:
2222
- Restart php-fpm
2323

0 commit comments

Comments
 (0)