# Trying to connect with another user if previews user unable to connect in playbook

**URL:** <https://forum.ansible.com/t/trying-to-connect-with-another-user-if-previews-user-unable-to-connect-in-playbook/27557>\
**Category:** Ansible Project\
**Created:** [May 18, 2018, 8:57am UTC](https://forum.ansible.com/t/trying-to-connect-with-another-user-if-previews-user-unable-to-connect-in-playbook/27557 "2018-05-18T08:57:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhay\_srivastava](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@abhay\_srivastava](https://forum.ansible.com/u/abhay_srivastava)\
**Post date:** [May 18, 2018, 8:57am UTC](https://forum.ansible.com/t/trying-to-connect-with-another-user-if-previews-user-unable-to-connect-in-playbook/27557/1 "2018-05-18T08:57:06Z")

</div>

- name: PLAY 1  
hosts: all  
gather\_facts: false  
remote\_user: centos  
tasks:

- name: PLAY 2  
hosts: all  
gather\_facts: false  
remote\_user: cloud  
any\_errors\_fatal: true

- import\_tasks: cloud\_change\_user.yml  
ignore\_errors: yes  
But this palybook giving error as host is unreachable for cloud user. but this should run for atleast centos user.
