remove debugging, set base to always set hostname
This commit is contained in:
parent
1c92be445e
commit
90b8c96e6c
1 changed files with 1 additions and 4 deletions
|
@ -88,11 +88,8 @@
|
|||
- base
|
||||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- debug: msg="{{ansible_nodename}} {{inventory_hostname}} {{ansible_distribution_major_version|int}}"
|
||||
|
||||
- name: make sure hostname is set right on rhel7 hosts
|
||||
command: hostnamectl set-hostname {{ inventory_hostname }}
|
||||
when: ( ansible_nodename != inventory_hostname ) and ansible_distribution_major_version|int == 7
|
||||
hostname: name="{{inventory_hostname}}"
|
||||
|
||||
- name: sshd_config
|
||||
copy: src={{ item }} dest=/etc/ssh/sshd_config mode=600
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue