Convert this ssh task entirely to new syntax, add ansible_distribution_version
This commit is contained in:
parent
0b8262c195
commit
f1f1fbd435
1 changed files with 6 additions and 5 deletions
|
@ -3,11 +3,12 @@
|
||||||
- name: sshd_config
|
- name: sshd_config
|
||||||
copy: src={{ item }} dest=/etc/ssh/sshd_config mode=600
|
copy: src={{ item }} dest=/etc/ssh/sshd_config mode=600
|
||||||
first_available_file:
|
first_available_file:
|
||||||
- $sshd_config
|
- {{ sshd_config }}
|
||||||
- ${files}/ssh/sshd_config.${ansible_fqdn}
|
- {{ files }}/ssh/sshd_config.{{ ansible_fqdn }}
|
||||||
- ${files}/ssh/sshd_config.${host_group}
|
- {{ files }}/ssh/sshd_config.{{ host_group }}
|
||||||
- ${files}/ssh/sshd_config.${dist_tag}
|
- {{ files }}/ssh/sshd_config.{{ dist_tag }}
|
||||||
- ${files}/ssh/sshd_config.${ansible_distribution}
|
- {{ files }}/ssh/sshd_config.{{ ansible_distribution }}
|
||||||
|
- {{ files }}/ssh/sshd_config.{{ ansible_distribution_version }}
|
||||||
notify:
|
notify:
|
||||||
- restart sshd
|
- restart sshd
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue