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 :)
20 juin 2017 11:26 "Stéphane Klein" <klein.s...@gmail.com> 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