HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to use Ansible variables from the command line

2,794 views February 29, 2020 6:03

Watch on YouTube
Channeltheurbanpenguin

Description 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.

Category
Education
Duration
6:03
Published
February 29, 2020
Views
2,794
Likes
77

Tags

Share

This tutorial in other languages