This little python trick works great in Ansible.
Let’s say you want to set foo to value of the bar, but only if bar is not empty. If bar is empty, you want to use other value (f.e. string “nothing”).
I’d like to present the alternative approach to solving endless struggle with ‘deliver CI credentials in a safe and ergonomic way’.
There is a very, very deep problem for every Ansible project: app/database relation. We need to configure database and users for application to access it, we need application to have that information to…
Sometime projects has a very stringent requirements on ansible.cfg. F.e. ceph-ansible uses it to specify location for plugins and modules. Some may have quirks for network_cli (f.e. additional retries), etc, etc. I even don’t…