Top "Ansible" questions

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

ansible: lineinfile for several lines?

The same way there is a module lineinfile to add one line in a file, is there a way to …

ansible
ansible : how to pass multiple commands

I tried this: - command: ./configure chdir=/src/package/ - command: /usr/bin/make chdir=/src/package/ - command: /usr/…

module command ansible
How to set Linux environment variables with Ansible

Hi I am trying to find out how to set environment variable with Ansible. something that a simple shell command …

linux ansible
How to run only one task in ansible playbook?

Is there a way to only run one task in ansible playbook? For example, in roles/hadoop_primary/tasks/hadoop_…

ansible
Run an Ansible task only when the variable contains a specific string

I have multiple tasks depend from the value of variable1. I want to check if the value is in {{variable1}} …

linux conditional ansible ansible-playbook ansible-2.x
Accessing inventory host variable in Ansible playbook

In Ansible 2.1, I have a role being called by a playbook that needs access to a host file variable. Any …

ansible ansible-2.x ansible-inventory
Copy multiple files with Ansible

How can I copy more than a single file into remote nodes by Ansible in a task? I've tried to …

ansible
Ansible - Use default if a variable is not defined

I'm customizing linux users creation inside my role. I need to let users of my role customize home_directory, group_…

ansible ansible-2.x
How to copy files between two nodes using ansible

I need to copy file form machine A to machine B whereas my control machine from where i run all …

ansible
How to ignore ansible SSH authenticity checking?

Is there a way to ignore the SSH authenticity checking made by Ansible? For example when I've just setup a …

ssh ansible