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 :)

On 19 June 2017 at 17:00, Stéphane Klein <[email protected]> wrote:
> Hi,
>
> I have CentOS Atomic Host (http://www.projectatomic.io/).
>
> When I execute:
>
> ansible -m setup my_atomic_os
>
> I have:
>
> "ansible_os_family": "RedHat"
>
> I see nowhere that this is a Atomic version of RedHat / CentOS (on Atomic
> host I can't install package…).
>
> How can I detect this with facts mechanism?
>
> I need to create an Ansible issue on GitHub about this feature request?
>
> Best regards,
> Stéphane
>
> --
> 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/a3cfd3e3-cbcb-4f50-9cc0-b99288c69aaa%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAK5eLPTJvtFa6w%2BPERZGMbghFpJkaSZGvT8DzpCbOH%3D_ZwGqNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to