Closed zbal closed 8 years ago
Relying on the inventory only, we should be able to use stuff like when_string: '"service_name"' is defined
- effectively checking that we have for ex. a "php" var (object) defined in the host itself.
That would require to have all the default values added. Or That we need to generate an inventory that includes the previously existing groups
ex.
php and nginx
orphp and apache
- one needphp-fpm
, the other needslibapache2-mod-php5
; and all the related configs. We can't really install everything by default as the dependencies would led to install php, libphp, fpm, nginx, apache, etc. and .. it sucks to manage...The other thing is about shared config; php comes in 3 flavors: cli, fpm, apache - by default they all have their individiual config files; we are currently "sharing" them via links - there is no way to perform manual change / or high level of customization per service as everything gets overwrote on server sync.
@JuhaS @zbal - put your thoughts; before, we were creating fake groups in the env per service, and were able to run conditional exec by checking if the current server belonged to one of the service (group); ex: