Skip to content

Commit

Permalink
Refactor to detect apache2 automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
t2d committed Aug 14, 2024
1 parent 25fa94a commit a0b9c9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,3 @@ roundcube_carddav_version: 4.4.2

# Installer
roundcube_enable_installer: false

# Apache
roundcube_apache: true
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ansible.builtin.service:
name: apache2
state: restarted
when: roundcube_apache | bool
when: ansible_facts.services is search("apache2.service")
notify:
- Restart php-fpm

Expand Down

0 comments on commit a0b9c9d

Please sign in to comment.