Commit df80d536 authored by thiolliere's avatar thiolliere
Browse files

install ansible deps

parent ba7ce67b
......@@ -3,10 +3,8 @@ import json
# machine must provide write_file and exec_cmd functions
def run(machine, name, timezone, wifi_pwd, edupi, aflatoun, kalite, zim_install, ansiblecube_path):
machine.exec_cmd("sudo apt-get update")
machine.exec_cmd("sudo apt-get install -y python-pip git python-dev libffi-dev libssl-dev gnutls-bin")
machine.exec_cmd("sudo pip install ansible==2.2.0 markupsafe")
machine.exec_cmd("sudo pip install cryptography --upgrade")
machine.exec_cmd("sudo apt-get install -y python-pip python-yaml python-jinja2 python-httplib2 python-paramiko python-pkg-resources libffi-dev libssl-dev git lsb-release")
machine.exec_cmd("sudo pip install ansible==2.2.0")
machine.exec_cmd("sudo mkdir --mode 0755 -p /etc/ansible")
machine.exec_cmd("sudo cp %s/hosts /etc/ansible/hosts" % ansiblecube_path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment