Top "Ansible-playbook" questions

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

Difference between become and become_user in Ansible

Recently I started digging into Ansible and writing my own playbooks. However, I have a troubles with understanding difference between …

ansible ansible-playbook ansible-2.x
Ansible Command module says that '|' is illegal character

I am using Ansible to deploy my project and I trying to check if an specified package is installed, but …

shell ansible dpkg ansible-playbook
How to disable gathering facts for subplays not included within given tag

Several of my playbooks have sub-plays structure like this: - hosts: sites user: root tags: - configuration tasks: (...) - hosts: …

ansible ansible-playbook ansible-2.x
How to automatically install Ansible Galaxy roles?

All my Ansible playbooks/roles are checked in to my git repo. However, for Ansible Galaxy roles I always have …

ansible ansible-playbook ansible-galaxy
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
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
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 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