--- - hosts: "{{ hosts_target }}" become: false gather_facts: true vars_files: - /root/.secret/.ansible/vars_creds.yml tasks: - name: Debug debug: # var: ansible_facts msg: " It is {{ ansible_os_family }} {{ ansible_facts.distribution_major_version }} ( {{ ansible_facts.distribution_release }} )"