remove debugging, set base to always set hostname

This commit is contained in:
Kevin Fenzi 2016-07-18 21:48:09 +00:00
parent 1c92be445e
commit 90b8c96e6c

View file

@ -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