VOL-617 - ability to build without VM
Change-Id: Iec79d66b7ab98a5421eabe7819fa6325ff6690ce
diff --git a/ansible/roles/common/defaults/main.yml b/ansible/roles/common/defaults/main.yml
index 7be66d2..be41648 100644
--- a/ansible/roles/common/defaults/main.yml
+++ b/ansible/roles/common/defaults/main.yml
@@ -5,19 +5,7 @@
use_latest_for:
- debian-keyring
- debian-archive-keyring
- - python-dev
- - kafkacat
- - libssl-dev
- - libffi-dev
- - libpcap-dev
- - libxml2-dev
- - libxslt1-dev
- - python-virtualenv
- jq
- - python-nose
- - python-flake8
- - python-scapy
-# - python-libpcap
obsolete_services:
- puppet
diff --git a/ansible/roles/voltha-dev/defaults/main.yml b/ansible/roles/voltha-dev/defaults/main.yml
new file mode 100644
index 0000000..36b247c
--- /dev/null
+++ b/ansible/roles/voltha-dev/defaults/main.yml
@@ -0,0 +1,17 @@
+use_latest_for:
+ - python-dev
+ - kafkacat
+ - libssl-dev
+ - libffi-dev
+ - libpcap-dev
+ - libxml2-dev
+ - libxslt1-dev
+ - python-virtualenv
+ - python-nose
+ - python-flake8
+ - python-scapy
+# - python-libpcap
+
+obsolete_services:
+ - puppet
+ - chef-client
diff --git a/ansible/roles/voltha-dev/files/ssh_config b/ansible/roles/voltha-dev/files/ssh_config
new file mode 100644
index 0000000..990a43d
--- /dev/null
+++ b/ansible/roles/voltha-dev/files/ssh_config
@@ -0,0 +1,3 @@
+Host *
+ StrictHostKeyChecking no
+ UserKnownHostsFile=/dev/null
diff --git a/ansible/roles/voltha-dev/tasks/main.yml b/ansible/roles/voltha-dev/tasks/main.yml
new file mode 100644
index 0000000..de23ddd
--- /dev/null
+++ b/ansible/roles/voltha-dev/tasks/main.yml
@@ -0,0 +1,13 @@
+- name: Latest apt packages
+ apt:
+ name: "{{ item }}"
+ with_items: "{{ use_latest_for }}"
+ tags: [voltha-dev]
+
+- name: Services are not running
+ service:
+ name: "{{ item }}"
+ state: stopped
+ ignore_errors: yes
+ with_items: "{{ obsolete_services }}"
+ tags: [voltha-dev]