From c241da7a6d6218320a162efd714ddc4b1e064341 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Thu, 30 Nov 2017 14:13:34 +0000 Subject: Check if multiverse repository is available in Ubuntu In Ubuntu, multiverse repository is needed to install the image dependencies [1]. If this repository is not enabled, it should be added as part of the role "add_custom_repos". [1] https://github.com/opnfv/yardstick/tree/master/ansible/roles/install_image_dependencies JIRA: YARDSTICK-875 Change-Id: Ie37ebf87bf245185447f2b675568af9bd38219c0 Signed-off-by: Rodolfo Alonso Hernandez --- ansible/roles/add_custom_repos/tasks/ubuntu.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ansible/roles/add_custom_repos/tasks/ubuntu.yml') 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 -- cgit 1.2.3-korg