Trending questions in Ansible

0 votes
1 answer

Write playbook to apply condition date wise comparison

Hi, It depends on your use case. For ...READ MORE

16 hours ago in Ansible by MD
• 65,360 points
12 views
0 votes
1 answer

Script for websphere app server restart based on user request.

Hi@Saurabh, You can use the service module to ...READ MORE

2 days ago in Ansible by MD
• 65,360 points
16 views
0 votes
1 answer

How to configure the Nginx server in AWS with Ansible Playbook?

Hi@akhtar, To configure the Nginx server in AWS, ...READ MORE

Oct 12 in Ansible by MD
• 65,360 points
27 views
0 votes
1 answer

How to create an Elastic Load Balancer in AWS with Ansible Playbook?

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

Oct 12 in Ansible by MD
• 65,360 points
27 views
0 votes
1 answer

Error Message: "No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV4Handler'] Check your credentials"

Hi@akhtar, A dynamic inventory script will cache results to ...READ MORE

Oct 12 in Ansible by MD
• 65,360 points
24 views
0 votes
1 answer

Running task from Different roles in parallel

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

Oct 7 in Ansible by MD
• 65,360 points
23 views
0 votes
1 answer

How to skip execution of a task in ansible playbook ??

Define tags...  Then while running playbook use --skip-tags. READ MORE

Sep 30 in Ansible by Adil
98 views
0 votes
1 answer

How to run a cron job using Ansible Playbook?

Hi@akhtar, You can use a module named Cron ...READ MORE

Sep 29 in Ansible by MD
• 65,360 points
100 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 in Ansible by MD
• 65,360 points
42 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 in Ansible by Adil
33 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 in Ansible by MD
• 65,360 points
28 views
0 votes
1 answer

How to specify sudo password for Ansible?

Hi@akhtar, You can pass variable on the command ...READ MORE

Sep 27 in Ansible by MD
• 65,360 points
36 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 27 in Ansible by Akhil
19 views
0 votes
1 answer

How to move/rename a file using an Ansible task on a remote system?

Hi@akhtar, You can use the command module to ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
430 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 23 in Ansible by smy
18 views
0 votes
1 answer

Create a network in Docker using Ansible playbook.

Hi@akhtar, The docker_network module (Ansible 2.2 or higher) can create ...READ MORE

Sep 20 in Ansible by MD
• 65,360 points
83 views
0 votes
1 answer

How to set dynamic host inventory file for docker in Ansible?

Hi@akhtar, In a configuration especially a container setup such ...READ MORE

Sep 20 in Ansible by MD
• 65,360 points
81 views
0 votes
1 answer

How to create docker volume using Ansible?

Hi@akhtar, We can create a volume docker resource ...READ MORE

Sep 20 in Ansible by MD
• 65,360 points
59 views
0 votes
1 answer

How to launch MySQL docker container using Ansible playbook?

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

Sep 20 in Ansible by MD
• 65,360 points
43 views
0 votes
1 answer

How to start a docker container with healthstatus using Ansible?

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

Sep 20 in Ansible by MD
• 65,360 points
57 views
0 votes
1 answer
0 votes
1 answer

How to do SSH in EC2 instance using Ansible Playbook?

Hi@akhtar, To configure your inventory dynamically you need ...READ MORE

Sep 21 in Ansible by MD
• 65,360 points
24 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 in Ansible by MD
• 65,360 points
38 views
0 votes
1 answer

What is dynamic inventory in Ansible?

Hi@akhtar, In a configuration especially a cloud setup such ...READ MORE

Sep 20 in Ansible by MD
• 65,360 points
26 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 in Ansible by MD
• 65,360 points
22 views
0 votes
1 answer

"module_stderr": "/bin/sh: 1: /usr/bin/python: not found\n", MODULE FAILURE\nSee stdout/stderr for the exact error",

Hi@akhtar, This is because your system does not ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
134 views
0 votes
1 answer

Merge/Append two files into single file and ensure no duplicate entries are found using Ansible

Hi@Jp, You need to create your own customized ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
128 views
0 votes
1 answer

"msg": "winrm or requests is not installed: No module named winrm"

Hi@akhtar, You need to install pywinrm module in ...READ MORE

Sep 8 in Ansible by MD
• 65,360 points
516 views
0 votes
1 answer

How to compare two files using Ansible?

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

Sep 17 in Ansible by MD
• 65,360 points
105 views
0 votes
1 answer

How to disable swap in remote system using Ansible?

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

Sep 16 in Ansible by MD
• 65,360 points
121 views
0 votes
1 answer

How to remove duplicate entries from a file using Ansible?

Hi@akhtar, You can use the shell module to do your ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
67 views
0 votes
1 answer

How to add multiple lines in a file using Ansible playbook?

Hi@akhtar, You can update your file using lineinfile ...READ MORE

Sep 16 in Ansible by MD
• 65,360 points
108 views
0 votes
1 answer

How to copy multiple files to remote system using Ansible Playbook?

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

Sep 16 in Ansible by MD
• 65,360 points
103 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 in Ansible by MD
• 65,360 points
37 views
0 votes
1 answer

ERROR! The API server (https://galaxy.ansible.com/api/) is not responding, please try again later.

Hi@akhtar, It seems your ansible is connecting to the ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
36 views
0 votes
1 answer

How to remove old file using Ansible?

Hi@akhtar, You can remove your files using Ansible. ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
30 views
0 votes
1 answer

How to check the syntax of an Ansible playbook?

Hi@akhtar, Ansible has lots of commands, that help ...READ MORE

Sep 15 in Ansible by MD
• 65,360 points
122 views
0 votes
1 answer

How to switch a user per task or set of tasks?

Hi@akhtar, Ansible has a concept of privilege escalation. ...READ MORE

Sep 17 in Ansible by MD
• 65,360 points
24 views
0 votes
1 answer

How to install mongodb on centos 7 using ansible

Hi@Shashi, I think for MongoDB you need to ...READ MORE

Sep 16 in Ansible by MD
• 65,360 points
62 views
0 votes
1 answer

How to make a file executable with Ansible?

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

Sep 16 in Ansible by MD
• 65,360 points
40 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 in Ansible by MD
• 65,360 points
1,754 views
0 votes
1 answer

FAILED! => {"changed": false, "msg": "state is mounted but all of the following are missing: fstype"}

Hi@akhtar, You need to pass some more arguments ...READ MORE

Sep 16 in Ansible by MD
• 65,360 points
30 views
0 votes
1 answer

How to run an Ansible Playbook to a particular node?

Hi@akhtar, You can control the playbook from the ...READ MORE

Sep 16 in Ansible by MD
• 65,360 points
25 views
0 votes
1 answer

How to mount a dvd in a folder using Ansible playbook?

Hi@akhtar, Ansible has the mount module that is idempotent ...READ MORE

Sep 16 in Ansible by MD
• 65,360 points
27 views
0 votes
1 answer

How to run a playbook from a specific task in Ansible?

Hi@akhtar, The --start-at-task option allows you to start ...READ MORE

Sep 15 in Ansible by MD
• 65,360 points
64 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 in Ansible by MD
• 65,360 points
1,323 views
0 votes
1 answer
0 votes
1 answer