[root@kvm19 ~]# vim /etc/sudoers.d/ansible [root@kvm19 ~]# cat /etc/sudoers.d/ansible deyu1 ALL=(ALL) NOPASSWD: ALL