Top "Ansible" questions

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

How to continue execution on failed task after fixing error in playbook?

When writing and debugging Ansible playbooks, typical workflow is as follows: ansible-playbook ./main.yaml Playbook fails on some task Fix …

ansible ansible-playbook
Execute curl -X with ansible playbook

I want to execute the next command using ansible playbook: curl -X POST [email protected] -H "Content-Type: application/json" …

ansible ansible-playbook ansible-2.x
How to loop over this dictionary in Ansible?

Say I have this dictionary war_files: server1: - file1.war - file2.war server2: - file1.war - file2.…

ansible ansible-2.x
include tasks from another role in ansible playbook

I'm designing a kind of playbook lib with individual tasks so in the usual roles repo, I have something like: …

ansible ansible-playbook
Check if service exists with Ansible

I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both …

centos ansible ansible-playbook
How to use arithmetic when setting a variable value in Ansible?

I would like to use a system fact for a host times a number/percentage as a base for a …

ansible
Ansible - Check if string exists in file

I'm very new to Ansible Is it possible to check if a string exists in a file using Ansible. I …

ansible ansible-2.x
How to filter gathering facts inside a playbook?

I'm working on a role that only needs to gather a single fact. Performance it's a concern and I know …

ansible ansible-facts
user vs sudo vs sudo_user in ansible playbooks

I have read the Ansible documentation but I am still a bit confused about the three following parameters in ansible …

sudo ansible
Not possible to source .bashrc with Ansible

I can ssh to the remote host and do a source /home/username/.bashrc - everything works fine. However if …

ansible