Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2014 04:16
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 anonymous/ecdea1f03154338120ad to your computer and use it in GitHub Desktop.
Save anonymous/ecdea1f03154338120ad to your computer and use it in GitHub Desktop.
newbox_TTLs_BadTTL:
cmd.run:
- name: 'sed -ir "0,/^TTL/{s|^(TTL) .*|\1 300|p};/^TTL/d" /etc/wwwacct.conf'
- onlyif: grep '^TTL' /etc/wwwacct.conf && ! grep '^TTL 300$' /etc/wwwacct.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment