# User data Not working

**URL:** <https://forum.ansible.com/t/user-data-not-working/25265>\
**Category:** Ansible Project\
**Created:** [August 16, 2017, 12:11pm UTC](https://forum.ansible.com/t/user-data-not-working/25265 "2017-08-16T12:11:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Maheshwari](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rohit\_Maheshwari](https://forum.ansible.com/u/Rohit_Maheshwari)\
**Post date:** [August 16, 2017, 12:11pm UTC](https://forum.ansible.com/t/user-data-not-working/25265/1 "2017-08-16T12:11:18Z")

</div>

Hi,

I am putting the below config in ec2\_lc module for the server to run the script at the time of start.

user\_data:  
{  
#!/bin/bash  
source /home/centos/startup.sh  
}

But It is not working.

It is giving me below error.

2017-08-15 16:12:46,441 - **init**.py[WARNING]: Unhandled non-multipart (text/x-not-multipart) userdata: ‘{'source /home/centos/st…’

Can someone please suggest where I am making a mistake?

Thanks,

Rohit
