Project31 / ansible-kubernetes-openshift-pi3

Ansible playbooks for setting up a Kubernetes Raspberry Pi 3 cluster
190 stars 56 forks source link

Task: "Check for an already generated token" requires local sudo without password #16

Closed zorel closed 7 years ago

zorel commented 7 years ago

Hello.

I'm in the process to install kubernetes on my raspberry pi from my Linux box. On this box, my user uses sudo, but sudo is not configured to connect without password.

So, ansible's local actions fail:

TASK [kubernetes : Check for an already generated token]

fatal: [192.168.0.20 -> localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: a  password is required\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

Enabling sudo without password on the ansible box make it work.

This should be indicated in the readme (or I missed it).

rhuss commented 7 years ago

Thanks for the heads up. I probably have to find out how to run a local_action without sudo as sudo is not required here at all (its just to store some config and the token within the playbook dir)