Most answered questions in Ansible

0 votes
1 answer
0 votes
1 answer

How to create a user using Ansible Playbook?

Hi@akhtar, You can use the user module in ...READ MORE

Sep 1, 2020 in Ansible by MD
• 95,440 points
4,089 views
0 votes
1 answer

How to use loop in Ansible playbook?

Hi@akhtar, Sometimes you want to repeat a task ...READ MORE

Sep 1, 2020 in Ansible by MD
• 95,440 points
941 views
0 votes
1 answer

How to remove a role from Ansible Galaxy?

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

Aug 28, 2020 in Ansible by MD
• 95,440 points
9,144 views
0 votes
1 answer

How to login to Ansible Galaxy from command line?

Hi@akhtar, To login to Ansible Galaxy, you need ...READ MORE

Aug 28, 2020 in Ansible by MD
• 95,440 points
1,804 views
0 votes
1 answer

How to download a role from Ansible Galaxy?

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

Aug 28, 2020 in Ansible by MD
• 95,440 points
1,378 views
0 votes
1 answer

How to copy folders using url in windows in ansible?

Hi@akhtar, You can find the win_get_url module. This ...READ MORE

Aug 27, 2020 in Ansible by MD
• 95,440 points
1,712 views
0 votes
1 answer

How to connect docker nodes with ansible master ?

Hi@akhtar, You need a running container first, and ...READ MORE

Aug 27, 2020 in Ansible by MD
• 95,440 points
1,403 views
0 votes
1 answer

ERROR: Inventory script (inventory/ec2.py) had an execution error: ERROR: "Authentication error retrieving ec2 inventory.

Hi@akhtar, You have to generate the AWS credentials ...READ MORE

Aug 21, 2020 in Ansible by MD
• 95,440 points
1,039 views
0 votes
1 answer

How to filter IP address of remote system in Ansible?

Hi@akhtar, You can use the filter keyword in your ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
1,980 views
0 votes
1 answer

ERROR! the role '/root/web' was not found in /root/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/root

Hi@akhtar, You are trying to use ansible role in your ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
2,892 views
0 votes
1 answer

How to create a role in Ansible?

Hi@akhtar, You can create a role in Ansible ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
601 views
0 votes
1 answer

ERROR! - None of the provided paths was usable. Please specify a valid path with --roles-path

Hi@akhtar, You are trying to list down ansible roles ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
2,250 views
0 votes
1 answer

How to list down all the roles in Ansible?

Hi@akhtar, Ansible role is a part of ansible-galaxy. ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
6,321 views
0 votes
1 answer

How to use an URL in Ansible Playbook?

Hi@akhtar, You can use the get_url module in ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
1,760 views
0 votes
1 answer

What is Handlers in Ansible?

Hi@akhtar, Handlers are just like normal tasks in an Ansible ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
1,030 views
0 votes
1 answer

How to use conditions in Ansible-Playbook?

Hi@akhtar, Traditional programming language usually uses the if-else ...READ MORE

Aug 20, 2020 in Ansible by MD
• 95,440 points
1,265 views
0 votes
1 answer

Is it possible to start ec2 Windows machine and run windows command using ansible playbook?

Hi@Lakshminarayanan, Yes, you can do that. But after ...READ MORE

Aug 14, 2020 in Ansible by MD
• 95,440 points
2,072 views
0 votes
1 answer

How to create VPC in AWS from Ansible controller node?

Hi@akhtar, You can find one module named ec2_vpc ...READ MORE

Aug 13, 2020 in Ansible by MD
• 95,440 points
661 views
0 votes
1 answer

How to create a security group in AWS using Ansible-Playbook?

Hi@akhtar, You can use the ec2_group module in ...READ MORE

Aug 13, 2020 in Ansible by MD
• 95,440 points
3,415 views
0 votes
1 answer

How to delete a key pair in AWS from Ansible-Playbook?

Hi@akhtar, You can use the ec2_key module in ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
695 views
0 votes
1 answer

How to create a key pair on AWS using Ansible-Playbook?

Hi@akhtar, You can find the ec2_key module in ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
1,140 views
0 votes
1 answer

How to launch an EC2 instance using Ansible Playbook?

Hi@akhtar, Ansible has one module named ec2. This ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
1,728 views
0 votes
1 answer

fatal: [localhost]: FAILED! => {"changed": false, "msg": "Either region or ec2_url must be specified"}

Hi@akhtar, You got this error because you did ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
1,701 views
0 votes
1 answer

fatal: [localhost]: FAILED! => {"changed": false, "msg": "boto required for this module"}

Hi@akhtar, As ansible use the python library in ...READ MORE

Aug 12, 2020 in Ansible by MD
• 95,440 points
3,710 views
0 votes
1 answer

What is the ask_pass module in Ansible?

Hi@akhtar, Ask_pass is the control module in an ...READ MORE

Aug 11, 2020 in Ansible by MD
• 95,440 points
2,602 views
0 votes
1 answer

What does Fact mean in Ansible?

Hi@akhtar, When any new variable about the system ...READ MORE

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

How to decrypt a vault in Ansible?

Hi@akhtar, You can use decrypt keyword in your ...READ MORE

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

How to change vault password in Ansible?

Hi@akhtar, You can use rekey keyword in your ...READ MORE

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

ERROR! Attempting to decrypt but no vault secrets found

Hi@akhtar, As you are using a vault in ...READ MORE

Aug 11, 2020 in Ansible by MD
• 95,440 points
17,263 views
0 votes
1 answer

How to import files in Ansible-Playbook?

Hi@akhtar, You can use vars_files keyword in Ansible. ...READ MORE

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

How to send mail using Ansible-Playbook?

Hi@akhtar, You can find one module in Ansible ...READ MORE

Aug 11, 2020 in Ansible by MD
• 95,440 points
5,553 views
0 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

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

How to run Ansible-Playbook in the localhost?

Hi@akhtar, To run any playbook in the local ...READ MORE

Aug 11, 2020 in Ansible by MD
• 95,440 points
2,448 views
0 votes
1 answer

How to find the memory of remote systems using the setup module in Ansible?

Hi@akhtar, You need to use the setup module to ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
5,380 views
0 votes
1 answer

How to take user input in Ansible?

Hi@akhtar, To ask for user input, we will ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
3,190 views
0 votes
1 answer

How to turn gathering facts task off in Ansible?

Hi@akhtar, You can use gather_facts: no keyword in your playbook. ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
23,139 views
0 votes
1 answer

How to ignore ansible SSH authenticity checking?

Hi@akhtar, To avoid this you need to set ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
3,723 views
0 votes
1 answer

How to create a directory using Ansible?

Hi@akhtar, You can use the file module. To ...READ MORE

Aug 10, 2020 in Ansible by MD
• 95,440 points
3,714 views
0 votes
1 answer

How to create a docker container using Ansible playbook?

Hi@akhtar, You can use the docker_container module in ...READ MORE

Aug 8, 2020 in Ansible by MD
• 95,440 points
4,057 views
0 votes
1 answer

Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6))

Hi@akhtar, You may get this error if the ...READ MORE

Aug 7, 2020 in Ansible by MD
• 95,440 points
17,496 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "Parameter 'description' is required."}

Hi@akhtar, You got this error because you did ...READ MORE

Aug 7, 2020 in Ansible by MD
• 95,440 points
1,937 views
0 votes
1 answer

How to pull a docker image using Ansible playbook?

Did you try using this? https://docs.ansible.com/ansible/latest/colle ...READ MORE

Nov 5, 2020 in Ansible by undermink
10,050 views
0 votes
1 answer
0 votes
1 answer

How to remove yum repository using Ansible playbook?

Hi@akhtar, You can use the yum_repository module in ...READ MORE

Aug 4, 2020 in Ansible by MD
• 95,440 points
3,686 views
0 votes
1 answer

How to configure yum using Ansible Playbook?

Hi@akhtar, You need to use the yum_repository module ...READ MORE

Aug 4, 2020 in Ansible by MD
• 95,440 points
1,907 views