# Self Hosting V2 Ansible issue

**URL:** <https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492>\
**Category:** CPIMS\
**Tags:** v2-0\
**Created:** [November 15, 2021, 4:51pm UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492 "2021-11-15T16:51:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user2](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/u/ecb155/32.png) [@user2](https://support.primero.org/forum/u/user2)\
**Post date:** [November 15, 2021, 4:51pm UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492/1 "2021-11-15T16:51:21Z")

</div>

I have forked Primero-v2 in a private repo and deployed it on a ubuntu server using Ansible.  
While running ansible configure,start command, i get this error

 ![Screenshot 2021-11-15 at 8.36.33 PM](https://support.primero.org/uploads/primero/original/1X/3e81a1758efa385f995a1826846f4f5d6f8e42c0.png)

I have updated sudoers on server to no password, tried adding `--ask-become-password` option too but on using that flag, ansible gets stuck on pull from git.

I can see the latest code on the server in directory `/srv/primero` outside container.  
But when I go to any container i.e. primero\_application\_1 container, I don’t see any latest code there. I have updated `inventory.yml` file with the private repo and the required branch. Also, because of this issue, I don’t see any new changes on the deployed server UI.

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [November 16, 2021, 2:42pm UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492/2 "2021-11-16T14:42:05Z")

</div>

I think it is asking for the password to your private repository so that it can clone it

---

<div class="post-metadata">

**Author:** ![user2](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/u/ecb155/32.png) [@user2](https://support.primero.org/forum/u/user2)\
**Post date:** [November 17, 2021, 4:11am UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492/3 "2021-11-17T04:11:09Z")

</div>

But I have already provided that password in the repository url

---

<div class="post-metadata">

**Author:** ![user2](https://support.primero.org/forum/letter_avatar_proxy/v4/letter/u/ecb155/32.png) [@user2](https://support.primero.org/forum/u/user2)\
**Post date:** [November 23, 2021, 4:04pm UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492/4 "2021-11-23T16:04:14Z")

</div>

I cloned primeroims in a private repository and did some code changes and wanted to deploy the latest code changes to the server/production. But, the docker was pulling docker images from UNICEF default server and that was not helping. So, I removed that repository from build.sh file, that way it used my local code changes and that way I was able to get my latest code changes on server without any password error. Password error was for docker image repository.

---

<div class="post-metadata">

**Author:** ![irlawrence](https://support.primero.org/forum/user_avatar/support.primero.org/irlawrence/32/8_2.png) [@irlawrence](https://support.primero.org/forum/u/irlawrence)\
**Post date:** [November 23, 2021, 9:21pm UTC](https://support.primero.org/forum/t/self-hosting-v2-ansible-issue/492/5 "2021-11-23T21:21:09Z")

</div>

Great you managed to solve it and thanks for dropping the answer here for others
