CORD-536 updated to support the setting of repo via vars
Change-Id: If8b6a23fd48b2050f3dc64d55427da150268d5cb
diff --git a/ansible/roles/java8-oracle/tasks/main.yml b/ansible/roles/java8-oracle/tasks/main.yml
index 32fe37b..b46950a 100644
--- a/ansible/roles/java8-oracle/tasks/main.yml
+++ b/ansible/roles/java8-oracle/tasks/main.yml
@@ -5,7 +5,9 @@
- name: Add Oracle Java repository
become: yes
- apt_repository: repo='ppa:webupd8team/java'
+ apt_repository:
+ repo: "{{ java_apt_repo | default('ppa:webupd8team/java') }}"
+ update_cache: yes
- name: Accept Java 8 license
become: yes
diff --git a/roles/create-vms/files/docker-install-playbook.yml b/roles/create-vms/files/docker-install-playbook.yml
index 032d886..484f196 100644
--- a/roles/create-vms/files/docker-install-playbook.yml
+++ b/roles/create-vms/files/docker-install-playbook.yml
@@ -25,7 +25,7 @@
- name: Add docker apt repo
apt_repository:
- repo="deb https://apt.dockerproject.org/repo ubuntu-trusty main"
+ repo: "{{ docker_apt_repo | default('deb https://apt.dockerproject.org/repo ubuntu-trusty main') }}"
- name: Install docker
apt:
diff --git a/roles/create-vms/tasks/main.yml b/roles/create-vms/tasks/main.yml
index 8c1acb6..323c4a0 100644
--- a/roles/create-vms/tasks/main.yml
+++ b/roles/create-vms/tasks/main.yml
@@ -1,5 +1,10 @@
---
# file: create-vms/tasks/main.yml
+- name: Ensure DIG
+ become: yes
+ apt:
+ name: dnsutils=1:9*
+ state: present
- name: create Virtual Machines with uvt-kvm
command: uvt-kvm create {{ item.name }} release={{ ansible_distribution_release }} \
diff --git a/roles/dell-virt/files/dell_app_key.gpg b/roles/dell-virt/files/dell_app_key.gpg
new file mode 100644
index 0000000..f62dd27
--- /dev/null
+++ b/roles/dell-virt/files/dell_app_key.gpg
@@ -0,0 +1,69 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1
+
+mQINBE9RLYYBEADEAmJvn2y182B6ZUr+u9I29f2ue87p6HQreVvPbTjiXG4z2/k0
+l/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Q+37w3lQZp/yCoGqA57S5VVIAjAll
+4Yl347WmNX9THogjhhzuLkXW+wNGIPX9SnZopVAfuc4hj0TljVa6rbYtiw6HZNmv
+vr1/vSQMuAyl+HkEmqaAhDgVknb3MQqUQmzeO/WtgSqYSLb7pPwDKYy7I1BojNiO
+t+qMj6P5ABEBAAGJAh4EGAEKAAkFAk9RL+ECGwwACgkQEoVJFDTYeG/6mA/4q6DT
+SLwgKDiVYIRpqacUwQLySufOoAxGSEde8vGRpcGEC+kWt1aqIiE4jdlxFH7Cq5Sn
+wojKpcBLIAvIYk6x9wofz5cx10s5XHq1Ja2jKJV2IPT5ZdJqWBc+M8K5LJelemYR
+Zoe50aT0jbN5YFRUkuU0cZZyqv98tZzTYO9hdG4sH4gSZg4OOmUtnP1xwSqLWdDf
+0RpnjDuxMwJM4m6G3UbaQ4w1K8hvUtZo9uC9+lLHq4eP9gcxnvi7Xg6mI3UXAXiL
+YXXWNY09kYXQ/jjrpLxvWIPwk6zb02jsuD08j4THp5kU4nfujj/GklerGJJp1ypI
+OEwV4+xckAeKGUBIHOpyQq1fn5bz8IituSF3xSxdT2qfMGsoXmvfo2l8T9QdmPyd
+b4ZGYhv24GFQZoyMAATLbfPmKvXJAqomSbp0RUjeRCom7dbD1FfLRbtpRD73zHar
+BhYYZNLDMls3IIQTFuRvNeJ7XfGwhkSE4rtY91J93eM77xNr4sXeYG+RQx4y5Hz9
+9Q/gLas2celP6Zp8Y4OECdveX3BA0ytI8L02wkoJ8ixZnpGskMl4A0UYI4w4jZ/z
+dqdpc9wPhkPj9j+eF2UInzWOavuCXNmQz1WkLP/qlR8DchJtUKlgZq9ThshK4gTE
+SNnmxzdpR6pYJGbEDdFyZFe5xHRWSlrC3WTbzg==
+=WBHf
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/roles/dell-virt/tasks/main.yml b/roles/dell-virt/tasks/main.yml
index 1d153f3..730e3c8 100644
--- a/roles/dell-virt/tasks/main.yml
+++ b/roles/dell-virt/tasks/main.yml
@@ -3,12 +3,11 @@
- name: Trust the Dell apt repository
apt_key:
- keyserver=pool.sks-keyservers.net
- id=1285491434D8786F
+ data: "{{ lookup('file', 'dell_apt_key.gpg') }}"
- name: Add Dell apt repo
apt_repository:
- repo="deb http://linux.dell.com/repo/community/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} openmanage"
+ repo="{{ dell_apt_repo | default('deb http://linux.dell.com/repo/community/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} openmanage') }}"
- name: Install BIOS configuration scripts
apt:
diff --git a/roles/head-prep/tasks/main.yml b/roles/head-prep/tasks/main.yml
index 290d94c..b22888d 100644
--- a/roles/head-prep/tasks/main.yml
+++ b/roles/head-prep/tasks/main.yml
@@ -14,8 +14,8 @@
apt_repository:
repo={{ item }}
with_items:
- - "ppa:juju/stable"
- - "ppa:ansible/ansible"
+ - "{{ juju_apt_repo | default('ppa:juju/stable') }}"
+ - "{{ ansible_apt_repo | default('ppa:ansible/ansible') }}"
- name: Install packages
apt: