roles/common: Remove check for CentOS in sshd task

I'm not supporting CentOS here so we don't need to check this.
This commit is contained in:
Alan Orth 2017-11-05 01:01:37 +02:00
parent f76fc64afa
commit 7fd6127d29
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
---
# SSH configs don't change in Debian / CentOS minor versions
# SSH configs don't change in Debian minor versions
- name: Reconfigure /etc/ssh/sshd_config
template: src=sshd_config_{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.j2 dest=/etc/ssh/sshd_config owner=root group=root mode=0600
when: (ansible_distribution == 'Debian' or ansible_distribution == 'CentOS')
when: ansible_distribution == 'Debian'
notify: reload sshd
# Ubuntu is the only distro we have where SSH version is very different from 14.04 -> 14.10,