Commit 785f0c9b by Kevin Falcone Committed by GitHub

Merge pull request #3775 from edx/jibsheet/multiverse-browsers

ubuntu-restricted-extras requires multiverse
parents af1c67d4 2e6fb3cd
# We install at least one package from the multiverse (ubuntu-restricted-extras)
# Ensure that we have it enabled for machines that run the browser role.
multiverse_urls:
- 'deb http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}} multiverse'
- 'deb-src http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}} multiverse'
- 'deb http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}}-updates multiverse'
- 'deb-src http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}}-updates multiverse'
- 'deb http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}}-security multiverse'
- 'deb-src http://archive.ubuntu.com/ubuntu {{ansible_distribution_release}}-security multiverse'
browser_deb_pkgs:
- dbus-x11
- gdebi
......
......@@ -12,6 +12,25 @@
- install
- install:system-requirements
- name: Add multiverse repos
apt_repository:
repo: "{{item}}"
update_cache: false # only update when adding new repos
register: multiverse_installed
when: ansible_distribution == 'Ubuntu'
with_items: "{{ multiverse_urls }}"
tags:
- install
- install:system-requirements
- name: Update cache when adding multiverse repos
apt:
update_cache: true
when: multiverse_installed | changed
tags:
- install
- install:system-requirements
- name: install system packages
apt:
name: "{{ item }}"
......
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