--- - hosts: "{{ hosts_servers }}" gather_facts: no tasks: - name: Package Installation apt: name: "{{ package_name }}" state: present