Skip to content

Instantly share code, notes, and snippets.

@UtahCampusD
Created November 29, 2016 19:38
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 UtahCampusD/3ff59b2b679361374ad5812b9f10ffd0 to your computer and use it in GitHub Desktop.
Save UtahCampusD/3ff59b2b679361374ad5812b9f10ffd0 to your computer and use it in GitHub Desktop.
somefileline:
file.line:
- name: /root/some_test_file.txt
- content: New text to add
- match: ^Existing
- mode: replace
- backup: True
clientaliveinterval:
file.line:
- name: /etc/ssh/sshd_config
- content: ClientAliveInterval 900
- match: ^#ClientAliveInterval
- mode: replace
- backup: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment