Ansible: The The Known Hosts Module
When a user access a remote node using ssh for the first time, a prompt will appear asking the following: This key is not known by any other names. Are you sure you want to continue…
When a user access a remote node using ssh for the first time, a prompt will appear asking the following: This key is not known by any other names. Are you sure you want to continue…
In this section we will try to understand few of the operations we can do using User module. In the below example, we will create anew user named shiju in the managed node, and will…
At times we may want to run certain command in the managed nodes, and would like to see the output to verify if the command ran correctly. The module commonly used to run commands on…
While ansible runs playbook on group of managed nodes which are also present in the Inventory file, we can run tasks on selected nodes based on defined conditions. For example we may want to install…
Roles is a feature provided by Ansible were once a standardized directory structure is created, you can automatically load related vars, files, tasks, handlers, and other Ansible artifacts. Using roles we have opportunities to reuse code from playbooks that…
The include_tasks module imports a list of tasks to the current playbook for execution. It is one way for organizing tasks in separate files and it also helps in reusing the tasks in other playbooks….