📅  最后修改于: 2022-03-11 14:58:27.235000             🧑  作者: Mango
- name: Set proper hostname
hostname:
#name: hostvars[inventory_hostname].ansible_host
name: "{{ hostvars[inventory_hostname].ansible_host }}"
become: yes
when:
- ansible_facts['os_family'] == 'Suse'