useradd ansible
passwd ansible
加入到wheel组
sudo usermod -G wheel ansible
编辑文件visudo
ansible ALL=(ALL) NOPASSWD:ALL
chage -M 99999 ansible #设置密码永不过期
useradd ansible
passwd ansible
加入到wheel组
sudo usermod -G wheel ansible
编辑文件visudo
ansible ALL=(ALL) NOPASSWD:ALL
chage -M 99999 ansible #设置密码永不过期