How to login to Ansible Galaxy from command line

0 votes

Hi Guys,

I am new to the Ansible role. I have created one role. Now I want to upload this role to the Ansible Galaxy portal. But how can I login to Ansible Galaxy?

Aug 28, 2020 in Ansible by akhtar
• 38,230 points
1,766 views

1 answer to this question.

0 votes

Hi@akhtar,

To login to Ansible Galaxy, you need a GitHub account. Ansible Galaxy internally uses the GitHub account to log in. You can pass your GitHub credentials to the below-given command.

$ ansible-galaxy role login

We need your GitHub login to identify you.
This information will not be sent to Galaxy, only to api.github.com.
The password will not be displayed.
Use --github-token if you do not want to enter your password.
GitHub Username: xxxxxx
Password for xxxxxx:
Successfully logged into Galaxy as xxxxxx
answered Aug 28, 2020 by MD
• 95,440 points

Related Questions In Ansible

0 votes
1 answer

How to remove a role from Ansible Galaxy?

Hi@akhtar, You need to log in to your ...READ MORE

answered Aug 28, 2020 in Ansible by MD
• 95,440 points
9,005 views
+1 vote
4 answers

Pass variable to ansible playbook through command line

ansible-playbook test.yml --extra-vars "arg1=${var1} arg2=${var2}" Use is like ...READ MORE

answered May 7, 2019 in Ansible by Bobin
13,918 views
0 votes
1 answer

Can Ansible modules be used from the command line?

Yes @Donna, you can execute a module ...READ MORE

answered Feb 11, 2019 in Ansible by Tariq
587 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,458 views
+2 votes
1 answer
0 votes
1 answer

How to see any module details in Ansible from the command line?

Hi@akhtar, Ansible has a very attractive command named ...READ MORE

answered Aug 11, 2020 in Ansible by MD
• 95,440 points
22,545 views
0 votes
1 answer

How to download a role from Ansible Galaxy?

Hi@akhtar, In Ansible, the role is the primary ...READ MORE

answered Aug 28, 2020 in Ansible by MD
• 95,440 points
1,342 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP