20 juin 2017 11:26 "Stéphane Klein"  a écrit:
Le lundi 19 juin 2017 18:16:37 UTC+2, Dick Davies a écrit :
 Start with: how would I tell the host is an Atomic host without Ansible?

Then you can combine a command: with a register:clause,
and run set_fact with a when: .

For the effort, I'd just add a custom fact. But without knowing how to tell,
that's tricky :) 
Thanks

It is possible to override ansible_os_family fact?

I try that:

[all]
atomic-test-node.example.com ansible_user=root ansible_os_family=atomic

But it don't work :(
hi,

There's custom local fact available for this, no ?
http://docs.ansible.com/ansible/playbooks_variables.html#local-facts-facts-d 
(http://docs.ansible.com/ansible/playbooks_variables.html#local-facts-facts-d)

Just put some lines of python program, make the output look JSON and voilà.

Regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/464f25381687e99c6783ef8fc69c3851%40wwws.lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to