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:
parent
f76fc64afa
commit
7fd6127d29
@ -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
|
- 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
|
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
|
notify: reload sshd
|
||||||
|
|
||||||
# Ubuntu is the only distro we have where SSH version is very different from 14.04 -> 14.10,
|
# Ubuntu is the only distro we have where SSH version is very different from 14.04 -> 14.10,
|
||||||
|
Loading…
Reference in New Issue
Block a user