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,210 points
397 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,300 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,300 points
1,867 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
12,128 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
192 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,250 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,300 points
1,861 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,300 points
466 views