Give this a try for rhel7 hosts.
This commit is contained in:
parent
0d962b4ee5
commit
4331dd3d90
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@
|
||||||
- packages
|
- packages
|
||||||
- base
|
- base
|
||||||
|
|
||||||
|
- name: make sure hostname is set right on rhel7 hosts
|
||||||
|
command: hostnamectl set-hostname {{ ansible_fqdn }}
|
||||||
|
when: ( ansible_fqdn != inventory_hostname ) and ansible_distribution_major_version == '7'
|
||||||
|
|
||||||
- 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
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue