- Видео 1
- Просмотров 10 778
William Boyd
Добавлен 19 янв 2016
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
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
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!
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 ?
this is helping in my current job, thanks
I actually hate that you made this video. Precisely because it was really good and there aren’t others.
plz make more
That's a great video about Ansible Facts.............Thank You WIlliam
Great video and concise presentation. subscribed! Would you make some more videos on ansible?