Re: [ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2017-08-16 Thread Pshem Kowalczyk
Hi, The user_data must be the actual script you want to run, so it shouldn't have any additional formatting and should start with #!/bin/bash. Something like this should work: user_data: | #!/bin/bash source /home/centos/startup.sh kind regards Pshem On Thu, 17 Aug 2017 at

[ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2017-08-16 Thread Rohit Maheshwari
Hi Stephen, Can you please help me with the below script for the user data? I just wanted user data to run "source /home/centos/startup.sh" when the server starts. I had used this user_data: { #!/bin/bash source /home/centos/startup.sh } but it didn't work.

[ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2015-03-16 Thread Stephen Tan
Ah, OK - ignore me. I wrote a module to handle the launch config creation and my module wasn't ingesting the user_data because it wasn't set up to do so. Once I added the user-data as a parameter, it worked OK - working code below. - name: Launch Configs ec2_lc: aws_access_key: {{

[ansible-project] Re: ec2_lc - launch configuration user data - uploads to aws OK but disappears!!

2015-03-16 Thread Stephen Tan
I repeated my launch config with a bash script of: #!/bin/bash echohello world The resulting output: TASK: [lc | Launch Configs] *** changed: [localhost] = (item={'instance_type': u't2.small', 'lc_security_groups': u'sg-b1423ad4', 'image_id':