Alice utilise witches.town. Vous pouvez læ suivre et interagir si vous possédez un compte quelque part dans le "fediverse".
Alice @Sasha

Great, another trivial stuff that doesn't work in Ansible : a value in a dict can't reference another value somewhere in the same dict.

Use case : a service comes in a two flavours, server or client. Now each «flavour» needs different values for a certain number of parameters (permissions, memory allocated, etc.). Of course I want to pick server or client in the host variables, and generate all depending ones in the role's defaults :

in host_var >
service:
is_server: true

in roles/default >
service:
ram: '{{ service.is_server | ternary("1G", "512M") }}'

Ansible says the structure is «recursive» and fails. How can you people use something like that ?