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