Top "Ansible" questions

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

How to create a new partition with Ansible

When I run this on the command line it works fine: echo -e "n\np\n1\n\n\nw" | sudo …

bash ansible disk-partitioning
Ansible get hostname as defined in inventory

In my inventory I define hosts like this: [server1] 141.151.176.223 I am looking for a variable which keeps the server1 name, …

ansible hostname ansible-inventory
Ansible: How to declare global variable within playbook?

How can I declare global variable within Ansible playbook. I have searched in google and found the below solution, but …

ansible ansible-inventory
Ansible stdout Formatting

Assuming the below tasks: shell: "some_script.sh" register: "some_script_result" debug: msg: "Output: {{ some_script_result.stdout_lines }} …

ansible ansible-2.x
Skip certain items on condition in ansible with_items loop

Is it possible to skip some items in Ansible with_items loop operator, on a conditional, without generating an additional …

filter ansible skip
pam_unix(sudo:auth): conversation failed, auth could not identify password for [username]

I'm using ansible to provision my Centos 7 produciton cluster. Unfortunately, execution of below command results with ansible Tiemout and Linux …

ssh ansible centos pam sshd
List all ansible hosts from inventory file for a task

For a backup I need to iterate over all hosts in my inventory file to be sure that the backup …

ansible ansible-playbook ansible-inventory
How Exactly Does Ansible Parse Boolean Variables?

In Ansible, there are several places where variables can be defined: in the inventory, in a playbook, in variable files, …

boolean ansible yaml ansible-inventory
Filter a substring matching a pattern from an ansible variable and assign matched substring to another variable

Let's say we have a long ansible string variable mystr. We have a regex pattern say substr_pattern and a …

ansible ansible-playbook ansible-2.x
automate usage of SSH local key for git deployment with ansible

I am working with vagrant and ansible. I want to automate the deployment role of ansible (You can check my …

git deployment vagrant ssh-keys ansible