Top "Ansible" questions

Red Hat Ansible is a model-driven, configuration management, multi-node deployment/orchestration and remote task execution system.

ansible ssh prompt known_hosts issue

I'm running Ansible playbook and it works fine on one machine. On a new machine when I try for the …

ssh command-prompt ansible ansible-playbook hosts-file
Ansible : create a relative symlink

In my playbook, I need to create a symbolic link for a repo. With command (shell) it may work like …

ansible ansible-2.x
Ansible copy ssh key from one host to another

I have 2 app servers with a loadbalancer in front of them and 1 database server in my system. I'm provisioning them …

ssh ansible capistrano3 ansible-playbook
How to get the first element of a list from the output of setup module in Ansible?

I received the following data from the setup module: "ansible_nodename": "3d734bc2a391", "ansible_os_family": "RedHat", "ansible_pkg_…

ansible jinja2 ansible-facts ansible-template
Unexpected Exception: name 'basestring' is not defined when invoking ansible2

I'm trying to execute ansible2 commnads... When I do: ansible-playbook -vvv -i my/inventory my/playbook.yml I get: Unexpected …

python python-3.x ansible ansible-2.x
Ansible: Get all the IP addresses of a group

Let's imagine an inventory file like this: node-01 ansible_ssh_host=192.168.100.101 node-02 ansible_ssh_host=192.168.100.102 node-03 ansible_ssh_host=192.168.100.103 node-04 …

ansible jinja2 ansible-playbook
Ansible Playbooks vs Roles

According to the Ansible docs, a Playbook is: ...the basis for a really simple configuration management and multi-machine deployment system, …

ansible ansible-playbook
Ansible creating a virtualenv

How do you create a virtualenv for a specific python version using ansible. Is there a command in the ansible …

python ansible
Copy local file if exists, using ansible

I'm working in a project, and we use ansible to create a deploy a cluster of servers. One of the …

ansible ansible-playbook infrastructure
Ansible: Multiple and/or conditionals in when clause

I am having issues when trying to use multiple and/or conditionals in a when statement to decide whether a …

ansible ansible-2.x