Latest questions in Ansible

+1 vote
1 answer
0 votes
1 answer

Clear the entire provision setup if fails to execute even a single command

Of course this is possible @Kiara, you ...READ MORE

Feb 7, 2019 in Ansible by Pragya
494 views
0 votes
1 answer

Playbook executed fine but output not as expected

Hey @Nisha, you've mentioned this line on ...READ MORE

Feb 7, 2019 in Ansible by Pragya
350 views
0 votes
1 answer

Get rid of fake error logs

These two modules : failed_when and changed_when ...READ MORE

Feb 7, 2019 in Ansible by Pragya
338 views
0 votes
1 answer
0 votes
1 answer

Reset unreachable hosts - Ansible

If you try using the host that ...READ MORE

Feb 7, 2019 in Ansible by Yesha
1,985 views
0 votes
1 answer

How to ignore failed commands in Ansible?

Usually, if even one command fails to ...READ MORE

Feb 7, 2019 in Ansible by Patt
15,401 views
0 votes
1 answer
0 votes
1 answer

Abort playbook execution when servers fail to deploy.

Het @Peter, try something like this: - name: ...READ MORE

Feb 7, 2019 in Ansible by Pragati
825 views
0 votes
1 answer

"FATAL: all hosts have already failed -- aborting" - Ansible error

Hey @Anju, you could change your second ...READ MORE

Feb 7, 2019 in Ansible by Sri
1,124 views
0 votes
1 answer

Ansible not loading variables properly

group_vars/all/main.yml: symfony: env: "{{ ENV ...READ MORE

Feb 4, 2019 in Ansible by anonymous
1,069 views
0 votes
1 answer

Error saying "ERROR: ufw is not a legal parameter in an Ansible task or handler"

Hey @Neel, you're probably running an older ...READ MORE

Feb 4, 2019 in Ansible by Diana
707 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,264 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,910 views
0 votes
1 answer

Requirements in the host that executes the mysql_db module.

These are the requirements for the host ...READ MORE

Feb 4, 2019 in Ansible by Diana
934 views
0 votes
2 answers

How to create MySQL tables using Ansible?

--- - hosts: dbserver   tasks:    - name: create a table ...READ MORE

Mar 19, 2019 in Ansible by Ankit Tyagi
7,445 views
0 votes
1 answer

Get ports using vagrant

You can get the correct ports using ...READ MORE

Feb 4, 2019 in Ansible by Husna
587 views
0 votes
1 answer

Configuration for setting up windows VM using ansible and vagrant

Hey @Leena,  your configuration file group_vars/windows-dev should contain something like: ansible_user: ...READ MORE

Feb 4, 2019 in Ansible by Vaishu
521 views
0 votes
1 answer

How do I update CentOS using Ansible?

You can use the yum module in the ...READ MORE

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

Backup file name - Ansible

Hey @Veronica, 6332 is the process ID ...READ MORE

Feb 4, 2019 in Ansible by Fazi Mullah Khan
1,387 views
0 votes
1 answer

perform ansible task with variable undefines

Hey @Laksha, If a variable has not been set, ...READ MORE

Feb 4, 2019 in Ansible by Anushri
316 views
0 votes
1 answer

Setup custom logo in Ansible Tower

Hey @Anjlai, Go to setting menu, navigate ...READ MORE

Feb 4, 2019 in Ansible by Kyraa
666 views
0 votes
1 answer

Playbook to backup all mysql databases

Hey @Ruth, you could use a playbook, ...READ MORE

Feb 4, 2019 in Ansible by Anushri
2,660 views
0 votes
1 answer

Restoring to a different cluster - Ansible

Hey @Kiara, When you try to restore ...READ MORE

Feb 4, 2019 in Ansible by Anushri
364 views
0 votes
1 answer

Restoring to an existing environment - Ansible

The restore contains the following: Dump of the ...READ MORE

Feb 4, 2019 in Ansible by Anushri
406 views
0 votes
1 answer

Backup and restore for clustered environment - Ansible

If you're restoring to a new cluster, ...READ MORE

Feb 4, 2019 in Ansible by Anushri
912 views
0 votes
1 answer

Considerations when dealing with backup and restoration - Ansible

Hey @Ruth, keep these following factors in ...READ MORE

Feb 4, 2019 in Ansible by Anushri
502 views
0 votes
1 answer

How do I backup my ansible playbooks?

In addition to the install.yml file included with your setup.sh setup ...READ MORE

Feb 4, 2019 in Ansible by Anushri
574 views
0 votes
1 answer

Where do I get ansible RDS Instance?

Hey @Neha, In the same dir as ...READ MORE

Feb 4, 2019 in Ansible by Anushri
636 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,164 views
0 votes
1 answer

How do I make my_dir available for all hosts? - Ansible

Hey @Kiara,  f you want to make my_dir available to ...READ MORE

Feb 1, 2019 in Ansible by Anisha
819 views
0 votes
1 answer

Error saying "ConnectionError(ProtocolError('Connection aborted.', error(2, 'No such file or directory')),)"

Hey @Nisha, you get this error when ...READ MORE

Feb 1, 2019 in Ansible by Kunal
1,617 views
0 votes
1 answer

ping from a docker container to a PBX sip server which is lying in the same lan as the host machine

Hey @Laksha, Look at how you're starting ...READ MORE

Feb 1, 2019 in Ansible by Anisha
1,055 views
0 votes
1 answer

Error saying "msg: unsupported parameter for module: deb"

Hey @Laksha, I think an older version ...READ MORE

Feb 1, 2019 in Ansible by Ansiha
2,123 views
0 votes
1 answer

Install snap

There is no snap module for ansible ...READ MORE

Feb 1, 2019 in Ansible by Anisha
500 views
0 votes
1 answer

How to run Ansible without hosts file?

Hey @Ruth, you can use ansible without using ...READ MORE

Feb 1, 2019 in Ansible by Anisha
2,501 views
0 votes
1 answer

Where do I get Ansible Tower hostname

Hey @Neel, you can fetch that information ...READ MORE

Feb 1, 2019 in Ansible by Anisha
1,043 views
0 votes
1 answer

Running Ansible Tower behind nginx

Hey @Jeena, you should find it at /etc/tower/conf.d/remote_host_headers.py, ...READ MORE

Feb 1, 2019 in Ansible by Anisha
942 views
0 votes
1 answer

How does strategy : free improve performance for network playbook?

The strategy plugin tells Ansible how to order multiple ...READ MORE

Feb 1, 2019 in Ansible by Anisha
2,721 views
0 votes
1 answer

Why is my output sometimes replaced with ********* ? - Ansible

Any string marked no-log, including passwords, are ...READ MORE

Feb 1, 2019 in Ansible by Anisha
904 views
0 votes
1 answer

How do I improve performance for network playbooks?

Hey @Anjali, these are few of the ...READ MORE

Feb 1, 2019 in Ansible by Ani
472 views
0 votes
1 answer

Ansible study materials

Hey @Jones, to study Ansible, first go ...READ MORE

Jan 31, 2019 in Ansible by Julie
930 views
0 votes
1 answer

How do I access shell environment variables using Ansible Playbook

Hey @Tina, If you need to access ...READ MORE

Jan 31, 2019 in Ansible by Mahir
3,218 views
0 votes
1 answer

How do I see all the inventory variables defined for my host?

Hey @Junaid, You can see all the ...READ MORE

Jan 31, 2019 in Ansible by Mahir
1,630 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,623 views
0 votes
1 answer

How do I disable cowsay?

You can uninstall cowsay by setting nocows=1 in ansible.cfg, or ...READ MORE

Jan 31, 2019 in Ansible by Mahir
3,852 views
0 votes
1 answer

How do I configure a jump host to access servers that I have no direct access to?

You can set a ProxyCommand in the ansible_ssh_common_args inventory variable. Any ...READ MORE

Jan 31, 2019 in Ansible by Mahir
10,762 views
0 votes
1 answer

How do I handle different machines needing different user accounts or ports to log in with?

Setting inventory variables in the inventory file ...READ MORE

Jan 31, 2019 in Ansible by Ansi
665 views
0 votes
1 answer

Unarchive module overwriting - Ansible

Hey @joe, you can use the create option, ...READ MORE

Jan 30, 2019 in Ansible by Khadeer
3,012 views