How to Pass Variables to Ansible Playbook in the command line? - Ansible extra variables

preview_player
Показать описание
How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. Very useful to combine some script, automation, or shell variables. Example with fruit variable defined as “banana” and changed to “apple” or “raspberry”.

BUY the Complete PDF BOOK to easily Copy and Paste the 200+ Ansible code
200+ Automation Examples For Linux and Windows System Administrator and DevOps

my VIDEO COURSE: Ansible by Examples
200+ Automation Examples For Linux and Windows System Administrator and DevOps
Рекомендации по теме
Комментарии
Автор

Thank you, professor. Excellent. One comment. I saw your Medium article on the same subject. Please check it. Your code for "Executing Without Extra Variables" was the same as "Executing With a Plain Extra Variable." So, in this case, the code always shows apple and not banana. - Ed Sileo

EdwardSileo