# Deploy a file on a converged server with ansible

**URL:** <https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493>\
**Category:** Get Help\
**Tags:** playbook\
**Created:** [June 14, 2024, 9:05am UTC](https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493 "2024-06-14T09:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheo-brnd](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@matheo-brnd](https://forum.ansible.com/u/matheo-brnd)\
**Post date:** [June 14, 2024, 9:05am UTC](https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493/1 "2024-06-14T09:05:32Z")

</div>

Hi everyone !

I got an issue when I want to deploy a file with ‘ansible-playbook’ on a converged server. The problem is that I can’t put myself in (root) on this server.

I tried to add ‘become:yes’ on my tasks but the issue is the same…

The issue I got is : FAILED! =\> {“msg”: “Missing sudo password”}

If anyone can help me it could be great !

Still here if you have questions about my issue

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [June 14, 2024, 10:59am UTC](https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493/2 "2024-06-14T10:59:36Z")

</div>

I would guess that the user your are connecting to the server as doesn’t have password-less sudo?

You can test this manually, SSH to the server as the user and run `sudo -i` and see what the result is.

The way I approach this is to add the user to the `sudo` group and then add this to `/etc/sudoers`:

```auto
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL

```

Best use `visudo` to edit `/etc/sudoers` as this will check it is valid before saving the config.

---

<div class="post-metadata">

**Author:** ![matheo-brnd](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@matheo-brnd](https://forum.ansible.com/u/matheo-brnd)\
**Post date:** [June 14, 2024, 12:10pm UTC](https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493/3 "2024-06-14T12:10:41Z")

</div>

Thank you for your response !

The problem is that I can’t execute this type of command (I can’t execute visudo and modify etc/sudoers)…

My user only have the rights to create files/folders.

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [June 14, 2024, 12:12pm UTC](https://forum.ansible.com/t/deploy-a-file-on-a-converged-server-with-ansible/6493/4 "2024-06-14T12:12:21Z")

</div>

Ansible can only do what your user account can do, if you don’t have `sudo` rights then Ansible won’t have these rights either, you could set `become: false` to avoid the error if all you need to do is manipulate things using your user account.
