Skip to content

Instantly share code, notes, and snippets.

@jervisliu
Created May 28, 2014 01:31
Show Gist options
  • Save jervisliu/fa3eefb2c1523bd14fea to your computer and use it in GitHub Desktop.
Save jervisliu/fa3eefb2c1523bd14fea to your computer and use it in GitHub Desktop.
- name: SSH | Update the ssh security configuration (/etc/ssh/sshd_config)
template: src=etc_ssh_sshd_config.j2 dest=/etc/ssh/sshd_config owner=root group=root mode=0644
notify:
- restart ssh
-------------------- etc_ssh_sshd_config.j2
# Package generated configuration file
# See the sshd_config(5) manpage for details
{% for key, value in ssh_settings.iteritems() %}
{{key|e}} {{value|e}}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment