Slides from the following talk presented at PyCon Australia 2015:
https://www.youtube.com/watch?v=JlrkizEBjXk
Ansible is a configuration management tool, written in Python, that has taken the world of IT automation by storm. Its most remarkable quality is simplicity.
The Zen of Python is a set of aphorisms which capture the design philosophy of the Python language, one being "Simple is better than complex".
27. Explicit module result
tasks:
- name: Verify Python 3.x is the default
command: /usr/bin/python --version
register: pyver
failed_when: "'Python 3' not in pyver.stderr"
28. Magic variable?
tasks:
- name: Verify Python 3 is the default
command: /usr/bin/python --version
register: pyver
failed_when: "'Python 3' not in res.stderr"
29. Magic variable?
tasks:
- name: Verify Python 3 is the default
command: /usr/bin/python --version
register: pyver
failed_when: "'Python 3' not in res.stderr"
!
- copy: dest=~/py.ver content="{{res.stderr}}"