Skip to content

Instantly share code, notes, and snippets.

@nbeernink
Created July 26, 2018 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nbeernink/679b8c0bc635158b0ea4dfb96e10c7c5 to your computer and use it in GitHub Desktop.
Save nbeernink/679b8c0bc635158b0ea4dfb96e10c7c5 to your computer and use it in GitHub Desktop.
- 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