Run a shell script using ansible

Run a shell script using ansible

So sometimes, it’s not just feasible to develop a whole playbook, Instead, you want to run a shell script using ansible on remote servers. The best approach to achieve this would be to create a script using ansible on a remote server. You can use the copy module in Ansible to create a file in … Read more

Pass extra variables to Ansible playbook

Pass extra variables to Ansible playbook

Just like any other scripting language, you can pass extra variables to ansible playbook. Variables are very much important because It makes your ansible-playbook more dynamic and reusable. Why pass extra variables to Ansible playbook? To make your script more dynamic and reusable. Imagine there is something in your ansible-playbook, which need to be changed … Read more

Disable host-key checking in ansible

Disable host-key checking in ansible

If you want to disable host-key checking in the Ansible ad-hoc command, there are simple steps, but it’s important to disable it to make life easier. Why disable it? Before we get into how to disable let’s see why to disable it? Ansible works on SSH protocol and SSH maintains and checks the database of … Read more