roles/common: Add DSA/ECDSA cleanup to ssh tasks

We don't want to support these signature algorithms!

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-01-20 16:28:06 +03:00
parent 0d2763fb59
commit 171798c76d
1 changed files with 11 additions and 0 deletions

View File

@ -21,6 +21,17 @@
- restart sshd
tags: sshd
- name: Remove DSA and ECDSA host keys
file: name=/etc/ssh/{{ item }} state=absent
with_items:
- ssh_host_dsa_key
- ssh_host_dsa_key.pub
- ssh_host_ecdsa_key
- ssh_host_ecdsa_key.pub
notify:
- restart sshd
tags: sshd
- name: Reconfigure /etc/sysctl.conf
template: src=sysctl_{{ ansible_distribution }}.j2 dest=/etc/sysctl.conf owner=root group=root mode=0644
notify: