Top "Ansible" questions

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

Ansible: How to change active directory in Ansible Playbook?

- name: Go to the folder command: chdir=/opt/tools/temp When I run my playbook, I get: TASK: [Go …

ansible
ansible SSH connection fail

I'm trying to run ansible role on multiple servers, but i get an error: fatal: [192.168.0.10]: UNREACHABLE! => {"changed": false, "msg": "…

ssh connection ansible
How to run Ansible without specifying the inventory but the host directly?

I want to run Ansible in Python without specifying the inventory file through (ANSIBLE_HOST) but just by: ansible.run.…

python ansible
Ansible fails with /bin/sh: 1: /usr/bin/python: not found

I'm running into an error I've never seen before. Here is the command and the error: $ ansible-playbook create_api.yml …

ansible ansible-playbook
Ansible: Can I execute role from command line?

Suppose I have a role called "apache" Now I want to execute that role on host 192.168.0.10 from the command line …

ansible ansible-role
How do I write an Ansible handler with multiple tasks?

In response to a change, I have multiple related tasks that should run. How do I write an Ansible handler …

handler ansible
Passing variables to ansible roles

I have my directory structure as this └── digitalocean ├── README.md ├── play.yml └── roles ├── bootstrap_server │   └── tasks │   └── main.yml ├── create_new_…

ansible ansible-template
How to run apt update and upgrade via Ansible shell

I'm trying to use Ansible to run the following two commands: sudo apt-get update && sudo apt-get upgrade -y …

ansible ansible-playbook
Ansible provisioning ERROR! Using a SSH password instead of a key is not possible

I would like to provision with my three nodes from the last one by using Ansible. My host machine is …

ssh vagrant ansible ansible-inventory
How specify a list value as variable in ansible inventory file?

I need something like (ansible inventory file): [example] 127.0.0.1 timezone="Europe/Amsterdam" locales="en_US","nl_NL" However, ansible does not …

list variables ansible inventory