Add handler for apache reload

This commit is contained in:
flyingscorpio@clevo 2022-03-13 10:04:50 +01:00
parent b2a15afaee
commit af787b9254
2 changed files with 7 additions and 1 deletions

View file

@ -5,3 +5,9 @@
name: apache2 name: apache2
state: restarted state: restarted
enabled: true enabled: true
- name: Reload apache2 service
become: true
systemd:
name: apache2
state: reloaded

View file

@ -22,7 +22,7 @@
become: true become: true
command: a2dissite 000-default.conf command: a2dissite 000-default.conf
when: enabled_default_vhost.stat.exists when: enabled_default_vhost.stat.exists
notify: Restart apache2 service notify: Reload apache2 service
- name: Remove default vHost conf files - name: Remove default vHost conf files
become: true become: true