Ansible: Playbook running task based on condition
At times one may want to run certain tasks or command only if certain conditions are met. For example add a user called “RedhatUser01” only if the managed node is a Redhat node. Similarly add…
At times one may want to run certain tasks or command only if certain conditions are met. For example add a user called “RedhatUser01” only if the managed node is a Redhat node. Similarly add…
At times you may want to execute a single tasks with multiple variable values one after the other. For example create 3 user accounts using one task. One way is to write three tasks in the…