Add an important example for SSHd

Sudoers is a great example to show how you can prevent shutting yourself
out. But SSHd is at least as important to avoid syntax errors causing a
lot of grieve. So I think it deserves a spot in this list :-)
pull/19421/head
Dag Wieers 8 years ago committed by Brian Coca
parent fb0779f657
commit 2f90091f0a

@ -101,4 +101,14 @@ EXAMPLES = '''
src: /mine/sudoers
dest: /etc/sudoers
validate: 'visudo -cf %s'
# Update SSH configuration safely (avoid shutting yourself out)
- template:
src: etc/ssh/sshd_config.j2
dest: /etc/ssh/sshd_config.j2
owner: root
group: root
mode: '0600'
validate: /usr/sbin/sshd -t %s
backup: yes
'''

Loading…
Cancel
Save