jxn.safe-restart-apache2
Safe Restart Apache2 Handler
This is an Ansible role that restarts Apache only if the configuration check is successful.
Requirements
You need Apache version 2.x and the apachectl configtest
command.
Role Variables
(No specific variables are listed)
Dependencies
None
Example Playbook
Here’s an example of how to use this role:
- hosts: localhost
tasks:
- debug: msg="run the handler"
changed_when: yes
notify: safe restart apache
License
Apache License
Author Information
You can find more information at: https://github.com/jxn