# Ansible playbook breaks while mounting /home on remote

**URL:** <https://forum.ansible.com/t/ansible-playbook-breaks-while-mounting-home-on-remote/30628>\
**Category:** Ansible Project\
**Created:** [June 21, 2019, 1:22pm UTC](https://forum.ansible.com/t/ansible-playbook-breaks-while-mounting-home-on-remote/30628 "2019-06-21T13:22:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Shah](https://avatars.discourse-cdn.com/v4/letter/r/cab0a1/32.png) [@Raj\_Shah](https://forum.ansible.com/u/Raj_Shah)\
**Post date:** [June 21, 2019, 1:22pm UTC](https://forum.ansible.com/t/ansible-playbook-breaks-while-mounting-home-on-remote/30628/1 "2019-06-21T13:22:20Z")

</div>

Hi All

I have a requirement , where in I have to mount /home to a separate data disk on remote servers . I use ssh keys for executing ansible playbook from my control-node to towards remote server. Below is the small code

TASK 1 - take archive backup of /home directory  
TASK 2 - Mount /home to a separate data disk  
TASK 3 - extract the archive backup back to /home directory

TASK 1 runs fine , Task 2 as well serves its purpose( creates the /home mount point ) but then fails saying that /home/\<ansible\_user\> directory not found .

I know the reason why it fails . It is because when you it mount the /home , all its contents are GONE !! ( this is default behavior of mount command ) including ssh keys . so thats why my next ansible connection doesn’t works.

I have a understanding that for every single task , ansible usually create fresh SSH connection which explains the reason why my playbook fails .

Is there any way in ansible to achieve what I am trying to do ?? I thought of using ansible PIPELINE as well by exporting the env variable [`ANSIBLE_PIPELINING`](http://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_PIPELINING) and `[ANSIBLE_SSH_PIPELINING](http://docs.ansible.com/ansible/latest/reference_appendices/config.html#envvar-ANSIBLE_SSH_PIPELINING) /`  
`But this doesn't seems to work.`

Any suggesstions ??? !!!
