-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi
This is also an issue for me with no really good solution. One of my workarounds is to put
it into group_vars/all/default.yml, example:
```yaml
resources__files:
- path: '/usr/lib/check_mk_agent/plugins/entropy_avail'
src:
'/home/user/src/HeinleinSupport/check_mk/entropy_avail/agents/plugins/entropy_avail'
mode: '0755'
state: '{{ "present" if (ansible_distribution == "Debian" and
"debops_service_checkmk_agent" in group_names) else "absent" }}'
```
For SaltStack, I did quite a bit of research and found
https://docs.saltstack.com/en/master/ref/pillar/all/salt.pillar.stack.html which solves
this for me at work. Note that in the SaltStack world, it is way more common to have
hierarchical pillar structure (comparable to Ansible inventory) like `resources.files` so
some merging strategy is also way more important than with Ansible.
I have yet to find something like that for Ansible. But I have not really looked around so
I will closely follow this thread :)
- --
Live long and prosper
Robin `ypid` Schneider --
https://me.ypid.de/
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE7eE3HRuH0o2l6AUVhv2YC78aQPgFAl+B0/EACgkQhv2YC78a
QPhMcg/+KiHUGRMUGbQgTcHwz0i3nBKidjHDIu92RkNd1/Uicx+J3gqcLxx04E75
Vft/bHYJUWpp+V3rISyL9k1iqse+El5yoIZ6FAfDpdp0I9LrcIkpZgYyWEQXyay6
/voDBrkb3U1nTUaiH5iKCzoLclqe0cMHrU8EByu48F5yYCtFuLHl9WvEZiwxCPst
+cS4o9y3aq9k2fWuKKXd/3S/+hfih0REAwqBgFdl1hwc6nuHF/dz9U5p6ragyw1k
fmx/AXK3vVBpTzae4qachuSygCDcFuNHXlhgHdlComLAktyxvBKRVhuAfblTqai5
3CH+Rr9kYyBDTol16AUPY2VpsllNNmEfXuOUa3ECqBsu21yGRR9hSe5s81uJQ5Ie
0deRC2FHpWmvhkgbxqf7MmP3dcvsq41GAvZ+KKc5ddOt+wPIZ0c1jZ+F0dTfiAnO
7zusDqB+NrbrFZbavr92SmedylkccA1A6Ufa9fY5JENVBm6DGHJf4dLZAqXoM5Y7
iMQPIs4Itn9Gax42822Xe0ThlvFsobQ6xqX9ogkJsnckES+mdEBUlI8ofCZ7Dmei
eNUEwe7Sznbp5MK29qRM0DodLKHAwTVjmCCM1hYZ/XniGJb/7B4/C/n+mbQHswbZ
Kp+ushIHKmXH/5MyN2qCq9+esV+59xi/1GnrDDbbAtR7bOVa3SY=
=fEH0
-----END PGP SIGNATURE-----