fusor / catasb

Ansible scripts to setup an 'oc cluster up' environment for testing the Service Catalog and Ansible Service Broker on EC2 or Local
47 stars 33 forks source link

sudo: a password is required #80

Open jwmatthews opened 7 years ago

jwmatthews commented 7 years ago

TASK [openshift_setup : Resetting cluster, True] ***** changed: [localhost]

TASK [openshift_setup : Install docker through pip as it's a requirement of ansible docker module] *** fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

jwmatthews commented 7 years ago

The development team runs with NOPASSWD for sudo

%wheel ALL=(ALL) NOPASSWD: ALL

We need to test local/linux with the NOPASSWD turned off and see what errors pop up.

jmrodri commented 7 years ago

https://stackoverflow.com/questions/21870083/specify-sudo-password-for-ansible

This might help