--- - hosts: "{{ hosts_servers }}" gather_facts: no tasks: - name: Package installation apt: name: - "{{ package_name }}" - "{{ package_name }}" - "{{ package_name }}" - "{{ package_name }}" - "{{ package_name }}" - "{{ package_name }}" state: absent