Quando host Nome Ansible
# Use Special Variable inventory_hostname
when: inventory_hostname == 'your_inventory_name'
RicarHincapie
# Use Special Variable inventory_hostname
when: inventory_hostname == 'your_inventory_name'
- 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'