Skip to content

Instantly share code, notes, and snippets.

@nbeernink
Created July 26, 2018 13:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
- 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