Most answered questions in Ansible

0 votes
1 answer

ansible playbook to get get a specific version of an s3 object

You can use an ansible task, something ...READ MORE

Aug 26, 2019 in Ansible by Rhea
761 views
0 votes
1 answer

Ansible playbook for a shall script

You can convert a shell script to ...READ MORE

Aug 26, 2019 in Ansible by Anjali
1,316 views
0 votes
1 answer

Ansible error: ERROR! Variables must be specified as a dictionary, or a list of dictionaries

the correct syntax for the var file ...READ MORE

Jun 2, 2020 in Ansible by yehuda
6,356 views
0 votes
1 answer

want to comment cron job using ansible

- ...READ MORE

Jun 18, 2020 in Ansible by Disha Khandelwal
2,201 views
0 votes
1 answer

Ansible error "Could not find aptitude. Using apt-get instead"

Hey @Hita, use the apt module to ...READ MORE

Aug 26, 2019 in Ansible by Jinu
3,448 views
0 votes
1 answer

how can we unarchive multiple different files using ansible-playbook? i tried this yml file its getting error

RAR file is used to store other ...READ MORE

Oct 9, 2020 in Ansible by jack miller
4,871 views
+1 vote
1 answer

How download artifactory(.tar.gz file) from jfrog artifactory using ansible playbook in linux servers?

Hey @Anil, download the artifactory(.tar.gz) file and ...READ MORE

Aug 13, 2019 in Ansible by Kamal
8,376 views
0 votes
1 answer

1 master 10 clients - run ansible playbook only on 5

Create a group in the inventory file ...READ MORE

Aug 8, 2019 in Ansible by Tanya
759 views
0 votes
1 answer

Ansible error "from ansible import context ImportError: cannot import name context"

I had faced a similar issue. In ...READ MORE

Aug 8, 2019 in Ansible by Pallavi
12,712 views
0 votes
1 answer

Ansible playbook to create a new database

Hi pravalika, its pretty simple.  You just ...READ MORE

Aug 8, 2019 in Ansible by Trvais
2,770 views
0 votes
1 answer

Ansible playbook to copy database dump file to remote host and restore it to another database

Hey @Pavan, you can use the following ...READ MORE

Aug 8, 2019 in Ansible by Kalgi
• 52,360 points
3,886 views
0 votes
1 answer

Can we run parallel jobs in Ansible

Running parallel tasks in Ansible is not ...READ MORE

Aug 5, 2019 in Ansible by Kalgi
• 52,360 points
4,699 views
0 votes
1 answer

Delete an object/file from an s3 bucket

Hey @Jinu, you can try the following ...READ MORE

Aug 1, 2019 in Ansible by Barbara
939 views
0 votes
1 answer

Ansible task to download a file from an S3 bucket

Hey @Roshan, ansible provides wiht AWS module ...READ MORE

Aug 1, 2019 in Ansible by Varsha
6,853 views
0 votes
1 answer

Ansible task to copy file to S3 bucket

Hey @Adarsh, try this task definition: --- - hosts: ...READ MORE

Aug 1, 2019 in Ansible by Vish
3,911 views
0 votes
1 answer

Ansible playbook to create an S3 bucket

Hey @Alok, an ansible task like this ...READ MORE

Aug 1, 2019 in Ansible by Vish
2,901 views
0 votes
1 answer

Use parameters stored in aws parameter store in ansible playbook

Use aws_ssm module for this purpose: - name: ...READ MORE

Jul 23, 2019 in Ansible by Vishnu
1,418 views
0 votes
1 answer

Pass sudo password while executing Ansible playbook

Hey @Bob, try something like this: ansible-playbook playbook.yml ...READ MORE

Jul 22, 2019 in Ansible by Akash
5,132 views
0 votes
1 answer
0 votes
1 answer

Ansible Playbook to get k8s authentication result

Hey @Den, try something like this: - hosts: ...READ MORE

Jun 11, 2019 in Ansible by Faiza
872 views
0 votes
1 answer

Ansible task to read definition file from the Ansible controller file system.

Hey, you can use the k8s module ...READ MORE

Jun 11, 2019 in Ansible by Babita
1,062 views
0 votes
1 answer

Ansible task to create service object using inline definition

You can use the k8s module for ...READ MORE

Jun 11, 2019 in Ansible by Tanya
602 views
0 votes
1 answer

Get MD5 checksum of a windows file using Ansible

Hi @Travis, you can use the win_stat ...READ MORE

Jun 11, 2019 in Ansible by Greg
2,786 views
0 votes
1 answer

obtain information about a file in windows using ansible playbook

Hey @Travis, you can use the win_stat ...READ MORE

Jun 11, 2019 in Ansible by Drake
1,103 views
0 votes
1 answer

Ansible "When" statement

You can try the following workaround. So ...READ MORE

Jul 4, 2019 in Ansible by Anvit
850 views
0 votes
1 answer

Ansible Error "ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude"

vars_files is not supported for included playbooks ...READ MORE

Jun 3, 2019 in Ansible by Tara
4,305 views
0 votes
1 answer

Iterate over containerInstance feild?

Try something like this: - name: List jenkins ...READ MORE

Apr 9, 2019 in Ansible by Anshul
551 views
0 votes
1 answer

Playbook to get all the container's ARN's in my AWS ECS cluster

Hey @haseeb, you could try something like ...READ MORE

Apr 9, 2019 in Ansible by Anshul
753 views
0 votes
1 answer

Playbook to start ec2 instance

- name: Create an ec2 instance ...READ MORE

Apr 9, 2019 in Ansible by Kalgi
447 views
0 votes
1 answer

ERROR! with_dict expects a dict - When creating a new keypair using Ansible

Depends on the version you're using. I'm ...READ MORE

Apr 9, 2019 in Ansible by Anshul
2,604 views
0 votes
1 answer

What are the requirements to run Anible on Azure?

Using the Azure Resource Manager modules requires ...READ MORE

Apr 5, 2019 in Ansible by ZA
368 views
0 votes
1 answer

Requirements to run Ansible with Jenkins

These are the only requirements for running ...READ MORE

Apr 4, 2019 in Ansible by Himanshu
552 views
0 votes
1 answer

How is Jenkins used with Ansible?

Jenkins can be used as an interface ...READ MORE

Apr 4, 2019 in Ansible by Ashish
392 views
0 votes
1 answer
0 votes
1 answer

ERROR: Ansible playbook execution failed - Ansible Jenkins

Hey @Asha, Try to run it as user ...READ MORE

Apr 4, 2019 in Ansible by Aman
10,470 views
0 votes
1 answer

When to use Ansible work with Jenkins?

If your deployment and machine environment are ...READ MORE

Apr 4, 2019 in Ansible by Anand
436 views
0 votes
1 answer

Running a playbook using Ansible on Jenkins

Hey, @Asha seems like you've added a ...READ MORE

Apr 4, 2019 in Ansible by Akhil
3,172 views
0 votes
1 answer

How to copy directory and sub dirs's and files from source to remote using ansible playbook

Hey @Nishant, you can use the copy ...READ MORE

Apr 3, 2019 in Ansible by Kalgi
• 52,360 points
29,993 views
0 votes
1 answer

Permission denied error while building a project using Ansible on jenkins

Your Jenkins job is running as default ...READ MORE

Apr 2, 2019 in Ansible by Aleesha
2,420 views
0 votes
1 answer

Ansible task to know if a path exists and if its a directory

Hi @Nisha, use the stat module provided ...READ MORE

Apr 2, 2019 in Ansible by Alok
10,956 views
0 votes
1 answer

Ansible task to determine if a path exists and is a symlink

Hi @neha, you can write your task ...READ MORE

Apr 2, 2019 in Ansible by Alok
6,882 views
0 votes
1 answer
0 votes
1 answer

Return values of Ansible Commands

Hey @Rani, you could try something like ...READ MORE

Apr 2, 2019 in Ansible by Alia
645 views
0 votes
1 answer

Playbook to gather ec2_asg_facts AWS auto scaling group

Hey @Neya, try something like this: --- - name: ...READ MORE

Apr 2, 2019 in Ansible by Pam
1,401 views
0 votes
1 answer

Error: the field 'args' has an invalid value, which appears to include a variable that is undefined - Ansible

Hey @Harsh, use with_items to access the result ...READ MORE

Apr 2, 2019 in Ansible by Yesha
3,398 views
0 votes
1 answer

Error saying "Cannot write to ControlPath" - Ansible

hey @Neel, this seems like your Linux ...READ MORE

Mar 29, 2019 in Ansible by Yesha
3,305 views
0 votes
1 answer

Getting error when using Ansible playbook. error message: “msg”: “boto required for this module”

Hey @Vardhan, you're missing out on the ...READ MORE

Mar 29, 2019 in Ansible by Himanshu
7,379 views
0 votes
1 answer

Playbook to Create a VM with OS and multiple data storage accounts

Hey @Neha, you can write a task ...READ MORE

Mar 27, 2019 in Ansible by Frankie
506 views
0 votes
1 answer

Ansible Playbook for Creating a VM with OS and multiple data managed disks

Hey @Ammie, Try a playbook something like ...READ MORE

Mar 27, 2019 in Ansible by Stark
1,213 views