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 directory using Ansible

How do you create a directory www at /srv on a Debian-based system using an Ansible playbook?

directory filesystems ansible
How can I pass variable to ansible playbook in the command line?

I'm new to ansible and wonder how to do so as the following didn't work ansible-playbook -i '10.0.0.1,' yada-yada.…

variables command-line command-line-arguments ansible ansible-playbook
Ansible: How to delete files and folders inside a directory?

The below code only deletes the first file it gets inside the web dir. I want to remove all the …

ansible delete-file delete-directory
Specify sudo password for Ansible

How do I specify a sudo password for Ansible in non-interactive way? I'm running Ansible playbook like this: $ ansible-playbook playbook.…

ansible
How to move/rename a file using an Ansible task on a remote system

How is it possible to move/rename a file/directory using an Ansible module on a remote system? I don't …

ansible
Ansible: get current target host's IP address

How do you get the current host's IP address in a role? I know you can get the list of …

ansible ansible-facts ansible-template
Safely limiting Ansible playbooks to a single machine?

I'm using Ansible for some simple user management tasks with a small group of computers. Currently, I have my playbooks …

ansible ansible-playbook
Where can I get a list of Ansible pre-defined variables?

I see that Ansible provide some pre-defined variables that we can use in playbooks and template files. For example, the …

ansible ansible-facts
How to check if a file exists in Ansible?

I have to check whether a file exists in /etc/. If the file exists then I have to skip the …

ansible
Run command on the Ansible host

Is it possible to run commands on the Ansible host? My scenario is that I want to take a checkout …

deployment ansible