What I am trying to do: Pass information to run commands / install software inside the instance after it is launched
Thanks!
John Test
unread,
Apr 30, 2015, 1:34:17 PM4/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Figured it out thanks to sivel on IRC. In case anyone else is wondering just do a lookup('file', 'filename') The file called "filename" can be a bash script file, cloud init file, etc. Make sure the file starts with the appropriate header such as #!/bin/bash or #cloud-config etc.
Brian Coca
unread,
Apr 30, 2015, 2:38:25 PM4/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
lookup('pipe', 'script') might be more appropriate, it will succeed in
many cases that file will fail.