Trending questions in Ansible

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
844 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
593 views
0 votes
2 answers

ansible-command not found

Use some other variable instead of PATH. READ MORE

Apr 23, 2019 in Ansible by Vismaya
10,331 views
0 votes
0 answers
+1 vote
1 answer

Is it possible to append a large amount of text to a file using Ansible?

Here is concept which you can follow. blockinfile is ...READ MORE

Jul 30, 2018 in Ansible by Atul
• 10,240 points
13,987 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,345 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,139 views
0 votes
1 answer

Syntax error while using block in ansible role

block should be on the same indentation level ...READ MORE

Mar 13, 2019 in Ansible by Kim
4,078 views
0 votes
1 answer

Error while using ansible vault "ERROR! input is not vault encrypted data for vars/vars-mysql-config.yml"

Hey @Bhupan, I think your file is ...READ MORE

Jan 29, 2019 in Ansible by Kavya
5,910 views
0 votes
1 answer

Reset ansible vault password

Should you wish to change your password ...READ MORE

Feb 11, 2019 in Ansible by Zonasha
5,293 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,254 views
0 votes
1 answer

How to set vault password on ansible tower?

On Ansible Tower, go to Settings > ...READ MORE

Jan 29, 2019 in Ansible by Yesha
5,733 views
0 votes
1 answer

copy multiple files to multiple systems - Ansible

You can use /usr/bin/ansible command line. Ansible can SCP ...READ MORE

Mar 6, 2019 in Ansible by Yogesh
4,145 views
0 votes
1 answer

Installing mongodb using ansible

Your mongodb role should look something like this: - ...READ MORE

Mar 15, 2019 in Ansible by Purva
3,719 views
0 votes
1 answer

How do I get a list of all Ansible variables?

Ansible by default gathers facts about machines ...READ MORE

Jan 31, 2019 in Ansible by Mahir
5,557 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,572 views
0 votes
3 answers

Error saying "ERROR: problem running ansible_hosts --list ([Errno 8] Exec format error)" while running ansible playbook

Also, remove the execute permission for the ansible ...READ MORE

Feb 4, 2019 in Ansible by Pam
5,190 views
0 votes
1 answer

Store ec2 instance IP using ansible playbook

Hey @Himanshu, you can use something like ...READ MORE

Mar 25, 2019 in Ansible by Yesha
3,083 views
0 votes
1 answer

Error saying "conflicting action statements: user, uri"

YAML files are very sensitive about the ...READ MORE

Jan 9, 2019 in Ansible by krishti
6,260 views
0 votes
1 answer

Playbook to add hosts to the known hosts list - Ansible

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

Mar 26, 2019 in Ansible by Haider
2,901 views
0 votes
1 answer

Execute ansible playbook on a docker container

Hey @Ram, you could use a dockerfile ...READ MORE

Jan 22, 2019 in Ansible by Vedant
5,583 views
0 votes
1 answer

Create directories and download files in Ansible using Ansible playbook

Hey @Yash,  you could either use file module ...READ MORE

Jan 24, 2019 in Ansible by Cerdin
5,365 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,384 views
+1 vote
2 answers

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

Jun 14, 2018 in Ansible by DareDev
• 6,890 points
2,143 views
0 votes
1 answer

Error saying "Timeout (12s) waiting for privilege escalation prompt: or Connection to 127.0.0.1 closed.\r\n"

Hey @Sinha, add these parameters in your ...READ MORE

Feb 9, 2019 in Ansible by Monish
4,506 views
0 votes
1 answer

Error: One or more undefined variables: 'unicode object' has no attribute 'repo'

Hey change this in your role with_items: apt_repos By ...READ MORE

Mar 14, 2019 in Ansible by Haseeb
3,061 views
+1 vote
1 answer

Set AWS credentials in boto config file

Go to your boto config file, and ...READ MORE

Mar 26, 2019 in Ansible by Raymond
2,459 views
0 votes
1 answer

Execute shell commands using Ansible

You can use a playbook for this ...READ MORE

Jan 24, 2019 in Ansible by Ayaan
5,113 views
0 votes
1 answer

Print multiple env variables using ansible playbook

Hey @Tom, you can use the lookup ...READ MORE

Jan 24, 2019 in Ansible by Rick
5,088 views
0 votes
2 answers

Ansible error while ansible -m ping all

It looks like ansible may be installed ...READ MORE

Mar 18, 2019 in Ansible by Vince
2,818 views
0 votes
1 answer

Ansible Playbook to create a Load Balancer

Hey @Himanshu, you can try something like ...READ MORE

Mar 25, 2019 in Ansible by Jack
2,300 views
0 votes
1 answer

Playbook to create VM with managed disk - ansible with azure

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

Mar 27, 2019 in Ansible by Jobin
2,177 views
0 votes
1 answer

Errors when executing - ansible -m ping all - kubespray

Hey @Ananya, make sure of these following ...READ MORE

Jan 24, 2019 in Ansible by Yesha
4,836 views
0 votes
1 answer

Python script to decrypt while running the playbook - Ansible Vault

Ansible provides a feature where you can ...READ MORE

Mar 7, 2019 in Ansible by William
3,004 views
0 votes
1 answer

What is cobbler? - Ansible

Cobbler is a Linux installation server that ...READ MORE

Mar 24, 2019 in Ansible by Kyraa
2,214 views
0 votes
1 answer

Execute a command using ansible playbook

Hey @Reshma, You can use the URI ...READ MORE

Jan 17, 2019 in Ansible by Sameer
5,017 views
0 votes
1 answer

Can I use something like if statement to check for conditions in my playbook?

Hey @Kashish, you could use something like ...READ MORE

Feb 11, 2019 in Ansible by Kyra
3,907 views
0 votes
2 answers

How do i install Ansible using virtualenv

Adding to @Mohit's answer,  For CentOS and RHEL: sudo ...READ MORE

Jan 10, 2019 in Ansible by Dikinson
5,190 views
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing ansible on aws

Hey @Niana, I don't think you have ...READ MORE

Feb 4, 2019 in Ansible by Anushri

edited Feb 6, 2019 4,127 views
0 votes
1 answer
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
627 views
0 votes
1 answer

Permission denied while running the playbook

Hey @Hari, try executing your playbook using ...READ MORE

Feb 9, 2019 in Ansible by Monish
3,699 views
0 votes
1 answer

Boto config file on Linux

Hey @Hari, your boto config file could ...READ MORE

Mar 26, 2019 in Ansible by Raymond
1,753 views
0 votes
1 answer

Check for certain package with specific version exists - Ansible

Hey @Kavya, to check if a package ...READ MORE

Mar 6, 2019 in Ansible by Devika
2,600 views
0 votes
1 answer

Get ansible commands return value

Hey @Hina, you can add the following ...READ MORE

Feb 4, 2019 in Ansible by Diana
3,865 views
0 votes
1 answer

How to remove cron using Ansible

Hey @Likhit, You could use something like ...READ MORE

Jan 29, 2019 in Ansible by Kavya
4,145 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,378 views
0 votes
1 answer

Is it possible to run a playbook with a crontab?

Ofcourse you can run ansible playbook with ...READ MORE

Jan 17, 2019 in Ansible by Yesha
4,539 views
0 votes
1 answer

Error while running playbook consisting of roles - Ansible

You get this error because ansible was ...READ MORE

Mar 12, 2019 in Ansible by William
2,199 views
0 votes
1 answer

Remote host throwing error saying "Permission Denied" - Ansible

Hey @Patrick, Change the path of Ansible's remote_tmp ...READ MORE

Jan 16, 2019 in Ansible by Cerci
4,512 views