2 exec &> >(tee -a "/var/log/ansible-server.log")
4 if [ ! -f /tmp/.ansible-server-installed ]
7 pip install 'cherrypy<18.0.0'
10 apt-get -y install software-properties-common
11 apt-add-repository -y ppa:ansible/ansible
12 apt-get -y install ansible
14 cp /etc/ansible/ansible.cfg /etc/ansible/ansible.cfg.orig
15 cat /etc/ansible/ansible.cfg.orig | sed -e 's/#host_key_checking/host_key_checking/' > /etc/ansible/ansible.cfg
16 date > /tmp/.ansible-server-installed 2>&1
20 exec /usr/bin/python RestServer.py