Today I gave no rants. Systemd is doing a great job to think about all nuances of a service start. When an administrator uses it, and all units are written properly, it’s a bliss to use.
There is a specific case when you want to execute a play for hosts with a specific attribute. For sake of illustration I’ll use hardware_raid: true in all examples, but it should be equally useful for all other cases.
hardware_raid: true
There was an endless pain on templatization of yaml files containing go-inspired string interpolation. The most known culprits are Prometheus and Kapacitor. The Prometheus is the most outstanding because it has yaml as format…
I got tired of fighting different ‘network configuration suites’ for ip alias purposes. I gave up on them completely and start to use simple but robust systemd dependency system.
Long ago I have had this rather silly test for my application:
def test_Main_empty_cmdline(commands): with pytest.raises(SystemExit): commands.Main([])