Top "Ansible" questions

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

Specifying ssh key in ansible playbook file

Ansible playbook can specify the key used for ssh connection using --key-file on the command line. ansible-playbook -i hosts playbook.…

ansible
Ansible - read inventory hosts and variables to group_vars/all file

I have a dummy doubt that keeps me stuck for a long time. I have a very banal inventory file …

ansible ansible-inventory
How can I write variables inside the tasks file in ansible

I have this play.yml --- - hosts: 127.0.0.1 connection: local sudo: false tasks: - include: apache.yml My Apache look …

ansible ansible-playbook
Variable that has the path to the current ansible-playbook that is executing?

Is there an ansible variable that has the absolute path to the current ansible-playbook that is executing? some context: I'm …

ansible
Ansible date variable

I'm trying to learn how to use Ansible facts as variables, and I don't get it. When I run... $ ansible …

ansible fact
How to write dynamic variable in Ansible playbook

Based on extra vars parameter I Need to write variable value in ansible playbook ansible-playbook playbook.yml -e "param1=value1 …

jinja2 ansible ansible-playbook
Ansible: Set variable to file content

I'm using the ec2 module with ansible-playbook I want to set a variable to the contents of a file. Here's …

ansible ansible-playbook
Override hosts variable of Ansible playbook from the command line

This is a fragment of a playbook that I'm using (server.yml): - name: Determine Remote User hosts: web gather_…

ansible ansible-playbook
How to do multiline shell script in Ansible

right now I am using a shell script in ansible that would be much more readable if it was on …

shell ansible
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