Most voted questions in Ansible

0 votes
1 answer

want to comment cron job using ansible

- ...READ MORE

Jun 18, 2020 in Ansible by Disha Khandelwal
2,218 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,467 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,912 views
0 votes
0 answers

it will executing but skipping the tomcat and Jenkins

---   - hosts: all     become: yes     tasks:       - name: installing tools         yum: ...READ MORE

Aug 17, 2019 in Ansible by Rajendra
• 510 points
434 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
765 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,750 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,790 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,904 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,731 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
949 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,880 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,936 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,915 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,436 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,146 views
0 votes
1 answer
0 votes
2 answers

Ansible task to list all pods from any k8s namespace

Here is a more complete answer for ...READ MORE

Feb 6, 2020 in Ansible by scatat
6,346 views
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
880 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,078 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
608 views
0 votes
2 answers

Create k8s namespace using ansible

You can also create a kubernetes namespace ...READ MORE

Jun 11, 2019 in Ansible by Nasser

edited Jun 11, 2019 6,807 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,812 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,112 views
0 votes
1 answer

Ansible "When" statement

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

Jul 4, 2019 in Ansible by Anvit
865 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,353 views
0 votes
0 answers
0 votes
0 answers

How get_facts or show commands on A10 network? - Ansible

I'm a network engineer leveraging the A10s ...READ MORE

Apr 23, 2019 in Ansible by David
• 120 points
642 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
570 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
761 views
0 votes
1 answer

Playbook to start ec2 instance

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

Apr 9, 2019 in Ansible by Kalgi
456 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,636 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
377 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
559 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
398 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,511 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
445 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,192 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
30,063 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,440 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,980 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,939 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
653 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,423 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,426 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,326 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,401 views
0 votes
0 answers

Error while executing playbook to start ec2 instance

I have a playbook that starts an ...READ MORE

Mar 29, 2019 in Ansible by Kalgi
985 views