Closed roumano closed 6 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
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.
This issue was moved to ansible/galaxy#49
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 :
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