How to user hostvars

Hi,

I want to use hostvars to use a result of a task runing for on an host to apply this values/result to another host. The “register” can not be use because it is dedicated to the host, not sharing.

The goals is to active the Slave Mariadb server with the value from the Master server.

I think that I need to use the host-inventory (ini file) with this value. How can write this value ?

Thanks for your help

Regards
Olivier

Hi,

I’m pretty sure you could query facts cache to that end :

$ less test_facts_sharing.yml