Ansible and AWS service debug

I am little confused when to use var and when to use msg in debug in ansible when interacting with AWS. Please help.
  • post-author-pic
    Terrence C

    Actually, it is not specific to AWS. You use 'var' to capture output (the result), that you want to use in the debug statement.

    The actual Ansible documentation does a really concise job of showing you how at a glance, try this page here.

  • post-author-pic

    Thank you Terrence

Looking For Team Training?

Learn More