You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. tags applied to import_role will be automatically applied to all the tasks inside it.
2. tags applied to include_role will not be cascaded.
3. import_roles parse the playbook before execution, it is static. include_role is dynamic, it will directly execute the playbook, it will not parse like import_role before execution.
4. conditions applied to import_role is applied to all the tasks, include_role will not care the condition applied to it.
5. You cannot use loops on 'import_role' statements. You should use 'include_role' instead
dynamic inventory
=================
scaling environment, servers are dynamically created and destroyed based on traffic.. we cant use static inventory file, we need to dynamically query the instances. We can use dynamic inventory plugin from AWS passing region, name of the instances, runnning state, etc.
go to us-east-1, search frontend-dev running, get the IP address