William Boyd
William Boyd
  • Видео 1
  • Просмотров 10 778
HOWTO: Using Ansible facts to make decisions in playbooks
This is an introduction to the use of ansible facts to make decisions within playbooks.
You can find the sample code here: github.com/whboyd/ansible-facts-sample
Relevant ansible docs:
Ansible Facts: docs.ansible.com/ansible/latest/playbooks_variables.html#information-discovered-from-systems-facts
When statements: docs.ansible.com/ansible/latest/playbooks_conditionals.html#the-when-statement
Просмотров: 10 778

Видео

Комментарии

  • @scaryfear21
    @scaryfear21 7 месяцев назад

    It’s my first time I’m seeing a when statement before module is executed. All the books and manuals I’ve been through place a when statement after module is called. Makes more sense for the guys who are used to a classic if then logic. Cool!

  • @vitusyu9583
    @vitusyu9583 3 года назад

    You mentioned there are a lot of ways to do the same function, could you shed light on just another ways to do the same conditional execution of this Ansible tasks ?

  • @hungariannerd8445
    @hungariannerd8445 3 года назад

    this is helping in my current job, thanks

  • @git_t0v
    @git_t0v 3 года назад

    I actually hate that you made this video. Precisely because it was really good and there aren’t others.

  • @SandeepVerma-gn3lw
    @SandeepVerma-gn3lw 5 лет назад

    That's a great video about Ansible Facts.............Thank You WIlliam

  • @swadhikarc7858
    @swadhikarc7858 6 лет назад

    Great video and concise presentation. subscribed! Would you make some more videos on ansible?