From e27d11a31192965cf985945045df301eeff7e8a9 Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Mon, 28 May 2018 12:22:57 -0400 Subject: [PATCH] use {{ ansible_distribution_release }} instead of xenial This makes this task Ubuntu version agnostic --- roles/common/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 7a05124..66abf59 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -20,8 +20,8 @@ - name: Add Nodesource apt repositories apt_repository: repo={{ item }} state=present with_items: - - "deb https://deb.nodesource.com/node_6.x xenial main" - - "deb-src https://deb.nodesource.com/node_6.x xenial main" + - "deb https://deb.nodesource.com/node_6.x {{ ansible_distribution_release }} main" + - "deb-src https://deb.nodesource.com/node_6.x {{ ansible_distribution_release }} main" - name: Add Yarnpkg apt key apt_key: url="https://dl.yarnpkg.com/debian/pubkey.gpg" state=present - name: Add Yarnpkg apt repository