Created
July 26, 2018 13:53
-
-
Save nbeernink/679b8c0bc635158b0ea4dfb96e10c7c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
become: yes | |
tasks: | |
- name: Ensure critical systems are more resilient | |
copy: | |
dest: "/usr/lib/systemd/system/{{ item }}/reload-on-fail.conf" | |
content: | | |
[Service] | |
Restart=on-failure | |
RestartSec=5s | |
with_items: | |
- plesk-php56-fpm.service.d | |
- plesk-php70-fpm.service.d | |
- plesk-php71-fpm.service.d | |
- plesk-php72-fpm.service.d | |
- name: Execute systemd daemon-reload | |
systemd: daemon_reload=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment