Use ansible facts instead of facter.
The ansible_processor field provides a list of all hyperthreaded cores. Using Jinja we can just get the number of cores on the machine by running length on this list.
Showing
Please
register
or
sign in
to comment