use {{ ansible_distribution_release }} instead of xenial

This makes this task Ubuntu version agnostic
This commit is contained in:
Sadiq Saif 2018-05-28 12:22:57 -04:00 committed by GitHub
parent 043286087a
commit e27d11a311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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