Greets,

Hopefully this is a ridiculously simple question...

I'm trying to put together a one-liner (# ansible all -m copy...) that will 
copy a file to a linux host only if the OS is a specific version... RHEL7, 
for example, skipping any RHEL5. "ansible_distribution_major_version" seems 
to be the fact I'm interested in, but how do I use it outside of a playbook?

Thanks,
Reece

-- 
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/e4445778-7303-429a-9a8a-0dbe60f81197%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to