summaryrefslogtreecommitdiff
path: root/tools/dev_env_setup/playbooks
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-24 15:38:54 -0800
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-24 15:38:54 -0800
commitd5697c2531ae8f6e4ad8a462f0483aca47ae0665 (patch)
treee8a2347ce87b9c9fdb6222a29ec2bbb0f0a9f1ec /tools/dev_env_setup/playbooks
parent856f06f67e1aba7505542912213749cf35124246 (diff)
Added automatic install of eos-dev if it's not on the VM
[endlessm/eos-sdk#1620]
Diffstat (limited to 'tools/dev_env_setup/playbooks')
-rw-r--r--tools/dev_env_setup/playbooks/install_eos_dev_package.yaml9
-rw-r--r--tools/dev_env_setup/playbooks/setup_dev_machine.yaml2
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml b/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml
new file mode 100644
index 0000000..f69c31a
--- /dev/null
+++ b/tools/dev_env_setup/playbooks/install_eos_dev_package.yaml
@@ -0,0 +1,9 @@
+---
+# vim:ff=unix ts=2 sw=2 ai expandtab
+
+- name: "Ensuring that we can call apt from our scripts"
+ raw: "apt-get install -y --force-yes python-apt python"
+
+- name: "Ensuring that eos-dev is installed. If not, this operation will take a signifficant amount of time"
+ apt: name=eos-dev force=yes update_cache=true cache_valid_time=259200
+
diff --git a/tools/dev_env_setup/playbooks/setup_dev_machine.yaml b/tools/dev_env_setup/playbooks/setup_dev_machine.yaml
index 11f0783..e87b827 100644
--- a/tools/dev_env_setup/playbooks/setup_dev_machine.yaml
+++ b/tools/dev_env_setup/playbooks/setup_dev_machine.yaml
@@ -14,6 +14,8 @@
- "../default_variables.yaml"
tasks:
+ - include: install_eos_dev_package.yaml
+
- include: setup_tools_root.yaml
- include: create_eos_app_shortcuts.yaml