title: Unable to install ansible collections from a private git repository using Https and SSH link
body: <p>I am getting the below error it works with the tar file which i need to clone and install. As per ansible document we can install using the below methods.</p>
  <p><a href="https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-a-collection-from-a-git-repository" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#installing-a-collection-from-a-git-repository</a></p>
  <p>why is it asking for tar file in my case?</p>
  <p>[root@oc1546875**4 collections_repository1]# ansible-galaxy collection install git@github.i<em>m.com:samnanajeeb/test_collections.git
  Process install dependency map
  ERROR! Invalid collection name 'git@github.i</em>m.com', name must be in the format .. Please make sure namespace and collection name contains characters from [a-zA-Z0-9_] only.</p>
  <p>[root@oc1546875**4 collections_repository2]# ansible-galaxy collection install https://github.i*m.com/Ansible-Self-Study/collections_repository1.git
  Process install dependency map
  ERROR! Collection artifact at '/root/.ansible/tmp/ansible-local-7328qnvhfs/tmpOWt66o/collections_repository1SxEx78.git' is not a valid tar file.</p>