Top "Ansible-playbook" questions

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

how to define ssh private key for servers fetched by dynamic inventory in files

I met one configuration problem when coding ansible playbook for ssh private key file. As we know, we can define …

ansible ansible-playbook
Ansible: create a user with sudo privileges

I have taken over a Ubuntu 14.04 server. It has a user called "deployer" (used with capistrano), and as such, it …

ansible-playbook sudoers
Using True False with Ansible When Clause

I'm running into the silliest issue. I cannot figure out how to test for boolean in an Ansible 2.2 task file. …

boolean ansible ansible-playbook ansible-2.x
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
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
Pass array in --extra-vars - Ansible

How can I pass yaml array to --extra-vars in Ansible playbook. Ansible documentation does not declares its syntax nor I …

yaml ansible-playbook
Ansible - Print message - debug: msg="line1 \n {{ var2 }} \n line3 with var3 = {{ var3 }}"

In Ansible (1.9.4) or 2.0.0 I ran the following action: - debug: msg="line1 \n {{ var2 }} \n line3 with var3 = {{ var3 }}" $ cat …

action newline ansible roles ansible-playbook
In ansible, how do I get a variable with the name of the user running ansible?

I'm scripting a deployment process that takes the name of the user running the ansible script (e.g. tlau) and …

variables username ansible ansible-playbook
Ansible: How to encrypt some variables in an inventory file in a separate vault file?

The settings Consider an Ansible inventory file similar to the following example: [san_diego] host1 host2 [san_francisco] host3 host4 […

encryption ansible ansible-playbook ansible-vault
How to copy files with ansible relatively to the role?

I have a copy task inside a role and I was expecting that the src location would be relative to …

ansible ansible-playbook