I have a ansible task "yum_update_kernel" but I hosts I can not update the kernel on.

Hello

I have a ansible role “yum_update_kernel” but I hosts I can not update the kernel on.

can I hardcode “never run this role” if hostname is “name1” “name2” “name3”

timfox123

Probably, you are looking for applying a condition to a role: http://docs.ansible.com/ansible/playbooks_conditionals.html#applying-when-to-roles-and-includes