Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to use Ansible variables from the command line
ChanneltheurbanpenguinDescription from the creator
Make you Playbook more usable by adding in variables that can be populated form the command line. We look at creating users in Ansible 2.9.4 on the Raspberry Pi showing the use of variables and the option -e the ansible-playbook. No longer do we need to hard-code the user name into the playbook. Taking this approach we can also have 2 tasks one to create the user and one to delete the user and using the when clause to determine the state of another variable
About this tutorial
theurbanpenguin published this 6:03 video tutorial on February 29, 2020. It has been watched 2,794 times on YouTube.
- Channel
- theurbanpenguin
- Category
- Education
- Duration
- 6:03
- Published
- February 29, 2020
- Views
- 2,794
- Likes
- 77
Tags
Share
This tutorial in other languages
- FRComment utiliser des variables Ansible de la ligne de commande
- ESCómo utilizar variables Ansible desde la línea de comandos
- PTComo usar variáveis ansible a partir da linha de comando
- ITCome utilizzare le variabili ansible dalla riga di comando
- DEWie man ansible Variablen von der Kommandozeile verwenden
- NLHoe te Ansible variabelen vanaf de opdrachtregel
- RUКак использовать переменный анзибль из командной строки
- PLJak używać zmiennych ansibl z wiersza poleceń
- JAコマンドラインからAnsible変数を使用する方法
- ARكيفية استخدام المتغيرات Ansible من سطر الأوامر
- HIकमांड लाइन से Ansible चर का उपयोग कैसे करें
- IDCara menggunakan variabel Ansible dari baris perintah