In this tutorial, we will learn about using multiple hosts in ansible playbook
In below example, we configured separate host for each task.
In this tutorial, we will learn about using multiple hosts in ansible playbook
In below example, we configured separate host for each task.
In this tutorial, we will learn about when condition in ansible playbook
We don’t have If condition here. Instead of that we can use when condition
In below example we are using when condition based on host
when condition matches you can see the changed: [127.0.0.1]
in result.
Else it will skip the task skipping: [127.0.0.1]
in result
Below is Ansible documentation for conditions https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html
ignore warning message in ansible
Ignore Error in Ansible playbook
In this tutorial, we will learn to ignore the warning message in ansible logs
While working with ansible playbooks, we will get some annoying warning message which makes us uncomfortable.
Below is the useful code snippet to get rid of ansible warning logs
Ignore Error in Ansible playbook