aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/add_custom_repos/tasks/ubuntu.yml
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-12-22 11:42:27 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-22 11:42:27 +0000
commitedb1b87fae318501b853ef02a7aa7dffddfe1e48 (patch)
treefefafa804e91d824c6a4b62b4f6d8c436a6e5ac2 /ansible/roles/add_custom_repos/tasks/ubuntu.yml
parentd93f0b4e79bcf822dfb264a82e879f45038628d1 (diff)
parentc241da7a6d6218320a162efd714ddc4b1e064341 (diff)
Merge changes from topics 'YARDSTICK-875', 'YARDSTICK-874'
* changes: Check if multiverse repository is available in Ubuntu Specify supported architectures for Ubuntu backports repository
Diffstat (limited to 'ansible/roles/add_custom_repos/tasks/ubuntu.yml')
-rw-r--r--ansible/roles/add_custom_repos/tasks/ubuntu.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/add_custom_repos/tasks/ubuntu.yml b/ansible/roles/add_custom_repos/tasks/ubuntu.yml
index c0ba89c0b..4658fe514 100644
--- a/ansible/roles/add_custom_repos/tasks/ubuntu.yml
+++ b/ansible/roles/add_custom_repos/tasks/ubuntu.yml
@@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
+- name: Check multiverse repository
+ shell: "apt-cache policy | grep {{ release }}/multiverse"
+ args:
+ executable: /bin/bash
+ register: multiverse_repos
+ ignore_errors: yes
+
- name: add custom repos
template:
src: sources.list.j2