Missing sudo password in Ansible
Solution:
Method 1:
Add a file to the /etc/sudoers.d directory on the target machine called goyun with the following contents:
goyun ALL=(ALL) NOPASSWD:ALL
Method 2:
Run Ansible playbook with -k -K (uppercase). The playbook will prompt for password.
ansible-playbook goyun.info.yml -k -K
Comments
Post a Comment