ansible / galaxy-issues

This repository exists solely for the tracking of user issues with Ansible Galaxy.
20 stars 3 forks source link

Duplicate tags in ansible galaxy #262

Closed roumano closed 6 years ago

roumano commented 7 years ago

We have lot of duplicate tags in ansible galaxy :

fixing this issue will permit a better visibility of roles, less pages, easier to find a role.

HowTo Download all existing tags :

max=$(curl "https://galaxy.ansible.com/api/v1/tags/?page=1&format=json" | jq '.num_pages')
> /tmp/1.json
for i in $(seq 1 $max );do curl "https://galaxy.ansible.com/api/v1/tags/?page=${i}&format=json" >> /tmp/1.json; done

See few duplicates :

cat /tmp/1.json | jq -r '.results[].name' | grep -i raspberry raspberry raspberrypi RaspberryPi RaspberryPI

cat /tmp/1.son | jq -r '.results[].name' | grep -i ec2 ec2 EC2

cat /tmp/1 | jq -r '.results[].name' | grep -i certificate certificate certificates

chouseknecht commented 7 years ago

That's kind of the nature of tags. They're free-form. I suppose we could convert all tags to lowercase, and that would clean up some of it.

chouseknecht commented 6 years ago

This issue was moved to ansible/galaxy#49