<p>I'm testing thi project : </p>

<blockquote>
  <p><a href="https://github.com/sayems/kubernetes.resources/" rel="nofollow noreferrer">https://github.com/sayems/kubernetes.resources/</a></p>
</blockquote>

<p>And just for my understanding i commented out the ansible provisioning in the vagant part : </p>

<blockquote>
  <p><a href="https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/Vagrantfile#L34" rel="nofollow noreferrer">https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/Vagrantfile#L34</a></p>
</blockquote>

<p>to </p>

<blockquote>
  <p><a href="https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/Vagrantfile#L41" rel="nofollow noreferrer">https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/Vagrantfile#L41</a></p>
</blockquote>

<p>Then ran : </p>

<pre><code>vagrant up 
</code></pre>

<p>Witch start a non provisioned cluster a wanted </p>

<p>Then : </p>

<pre><code>ansible-playbook playbook.yml -i inventory.ini
</code></pre>

<p>But I'm getting this error : </p>

<blockquote>
  <p>TASK [token : Copy join command to local file]
  ******************************************************************************************************************************************************************************************************************************* fatal: [k8s-master]: FAILED! => {"msg": "Failed to get information on
  remote file (./join-command): sudo: il est nécessaire de saisir un mot
  de passe\n"}</p>
</blockquote>

<p>If i understand it needs to be root to execute this command : </p>

<blockquote>
  <p><a href="https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/roles/join/tasks/main.yml" rel="nofollow noreferrer">https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/roles/join/tasks/main.yml</a></p>
</blockquote>

<p>But we are supposed to be root : </p>

<blockquote>
  <p><a href="https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/playbook.yml" rel="nofollow noreferrer">https://github.com/sayems/kubernetes.resources/blob/master/k8s-vagrant/playbook.yml</a></p>
</blockquote>

<p>can anyone help or have an idea ? </p>

<p>Thanks </p>

user1361815
<p>I think you need to run it with <code>sudo</code>. Modules like copy expect to be available as the user running Ansible.</p>

<p><a href="https://github.com/ansible/ansible/issues/41056" rel="nofollow noreferrer">Reference</a></p>
