the value of ansible_hostname  is not fixed after the fact gathering
- name: common configuration   hosts: poc-3    tasks:     - name: set hostname      ...
Tags: ansible