Using expect-lite to automate a Shibboleth 3 IDP deployment via ansible Source

1---
2title: 'Using expect-lite to automate a Shibboleth 3 IDP deployment via ansible'
3date: '2015-10-07'
4published_at: '2015-10-07T15:18:00.000+11:00'
5tags: ['ansible', 'expect-lite', 'linux', 'shibboleth']
6author: 'Gavin Jackson'
7excerpt: 'I was automating the shibboleth 3 IDP installer in Ansible and came across expect-lite (apt-get install expect-lite). It''s a minimal wrapper around expect - a tool used for automating interactive comm...'
8updated_at: '2015-10-07T15:25:58.783+11:00'
9legacy_url: 'http://www.gavinj.net/2015/10/using-expect-lite-to-automate.html'
10---
11
12I was automating the shibboleth 3 IDP installer in Ansible and came across expect-lite (apt-get install expect-lite). It's a minimal wrapper around expect - a tool used for automating interactive command line apps.
13
14```
15>./install.sh
16>
17>
18>sso-dr.lesmills.net.au
19>https://sso-dr.lesmills.net.au/idp/shibboleth
20>lesmills.net.au
21>xxx
22>xxx
23>xxx
24>xxx
25```
26
27In a nutshell - simple syntax, seems to do the job well (well worth adding to the toolbox)! When combined with Ansible templates it offers a simple was to perform automated installations (across our dev/test/prod environments).
28
29I originally wanted to use the Ansible http://docs.ansible.com/ansible/expect_module.html, but the version of ansible I was running was a bit out of date.
30
31[http://expect-lite.sourceforge.net/index.html](http://expect-lite.sourceforge.net/index.html)
32
33
34