base: set hostname on all hosts, not just rhel7.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-09-27 20:13:19 +00:00 committed by Pierre-Yves Chibon
parent abf757a7d7
commit 1d68465ff2

View file

@ -127,9 +127,8 @@
- base
when: ansible_distribution_major_version|int > 29 and ansible_distribution == 'Fedora' and ansible_cmdline.ostree is not defined
- name: make sure hostname is set right on rhel7 hosts
- name: make sure hostname is set right on all hosts
hostname: name="{{inventory_hostname}}"
when: ansible_distribution_major_version|int == 7 and ansible_distribution == 'RedHat'
#
# We set builders root password in the koji_builder role, so do not set those here