Closed Esfahan closed 5 years ago
Yes. ansible_spec is not support ASK_SUDO_PASSWORD
.
Please use ASK_BECOME_PASSWORD
Because Ansible use word that become
instead of sudo
after Ansible 1.9.
ref #111
I found your post I think that this problem caused by mismatch between ansible_spec and serverspec. Hmmm
@volanja I appreciate your cooperation. https://github.com/volanja/ansible_spec/pull/125
sudo_password
and ASK_SUDO_PASSWORD
in spec_help.rb
I think they have nothing to do with sudo
and become
in ansible.
They are definitions for serverspec, not ansible.
I need to set sudo password with ansible_spec. So, I tried following command.
But the below error appeared.
Therefore, I cheked spec/spec_helper.rb and I found below lines.
There are some differences from serverspec.
set become_password
is defined instead ofset :sudo_password
in ansible_spec.So, I fixed as follows by reference to serverspec.
Now, I have been able to execute it with following command.
Why is the function implemented with different way from serverspec? Which is the better way to set sudo password?
Best regards