Trending questions in Ansible

0 votes
1 answer

Running task from Different roles in parallel

Hi@Shambhavi, You can use tags in your task. ...READ MORE

Oct 7, 2020 in Ansible by MD
• 95,440 points
982 views
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,685 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 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,189 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "This module has been removed. The module documentation for Ansible-2.3 may contain hints for porting"}

Hi@akhtar, You are using the docker module. This ...READ MORE

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

How to write ansible script for installing jenkins on aws RHEL?

Check this out. https://github.com/geerlingguy/ansible-role-jenkins H ...READ MORE

Sep 24, 2020 in Ansible by smy
1,042 views
0 votes
1 answer

How to create a cloudfront distribution using Ansible?

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

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

How to assemble files from a directory?

Hi@akhtar, Ansible has the assemble module. This module can ...READ MORE

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

How to create a group using Ansible Playbook?

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

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

Is it mandatory to have Ansible Controller Machine (ACM) and Jenkins Master on the same server/instance ?

Make git, Jenkins, Docker, ansible master as ...READ MORE

Sep 30, 2020 in Ansible by Adil
501 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,249 views
0 votes
1 answer

How to create a docker container using Ansible?

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

Sep 20, 2020 in Ansible by MD
• 95,440 points
904 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,600 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 update a distribution comment by distribution id using Ansible Playbook?

Hi@akhtar, You can update your distribution with the ...READ MORE

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

Create a container with limited capabilities using Ansible playbook.

Hi@akhtar, The docker_container module has capabilitues keyword. This ...READ MORE

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

How to configure httpd web server using Ansible Playbook?

Hi@akhtar, You need to write one program file ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,997 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,447 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,711 views
0 votes
1 answer

How to start httpd service in a remote system using Ansible?

Hi@akhtar, Ansible has a module named service. This ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,921 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,979 views
0 votes
1 answer

Which module is used to add repo in ansible for ubuntu?

It is Apt_repository that is used to ...READ MORE

Sep 28, 2020 in Ansible by Akhil
305 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "src and content are mutually exclusive"}

Hi@akhtar, You can't use content and src argument ...READ MORE

Aug 2, 2020 in Ansible by MD
• 95,440 points
2,735 views
0 votes
1 answer
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,070 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,758 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,377 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
–1 vote
2 answers

Set up the necessary tools such as git, chromedriver(selenium), chromium browser(selenium) on the slave node through Ansible

- hosts: all vars : ...READ MORE

Dec 31, 2020 in Ansible by Onkar
• 140 points

edited Dec 31, 2020 by MD 2,846 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
939 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,935 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,726 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,700 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,708 views
0 votes
1 answer

How to install httpd web server in remote node using Ansible?

Hi@akhtar, You need to use the package module in Ansible. ...READ MORE

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,228 views
0 votes
1 answer
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

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
0 votes
1 answer

How to copy files in remote system using Ansible?

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

Jul 30, 2020 in Ansible by MD
• 95,440 points
2,091 views
0 votes
1 answer

How to add several lines in a file using lineinfile module?

Hi@akhtar, When we need to perform a task ...READ MORE

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

Importance of lineinfile module in Ansible.

Hi@akhtar, The lineinfile module will search a file ...READ MORE

Sep 2, 2020 in Ansible by MD
• 95,440 points
580 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

ansible ssh and user module issue with edureka VM

Hi@Konakanchl, I guess you need to give your ...READ MORE

Jul 23, 2020 in Ansible by akhtar
• 38,230 points
2,258 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 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,139 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

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 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