How to Use Ansible Playbooks with Variables | Dynamic Infrastructure Automation

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 4

  • @qingweihe3512
    @qingweihe3512 5 วันที่ผ่านมา +1

    Hello, I really appreciate the videos you make. You always explain the principles clearly through simple examples. I especially hope you can make a video about the usage rules of ‘ and ” in ansible playbook. This question has always puzzled me. I think many people may be the same as me, and there is no official detailed documentation. Thank you very much for your hard work labor.

    • @techinik-devops
      @techinik-devops  5 วันที่ผ่านมา

      Thank you for your kind words! 😊 That’s a great suggestion-I’ll create a video explaining the usage of single (') and double (") quotes in Ansible playbooks soon. Stay tuned!

  • @kaushalsharmaKatara
    @kaushalsharmaKatara 2 หลายเดือนก่อน +1

    How to call variables in roll?

    • @techinik-devops
      @techinik-devops  2 หลายเดือนก่อน +1

      You can pass variables to roles using defaults, vars files, or directly within the role itself. To call these variables in a role’s tasks file, use the same syntax as in playbooks: {{ var_name }}. I’ll be uploading a new video soon that covers role creation and explains variable precedence in detail. Stay tuned!