use {{ ansible_distribution_release }} instead of xenial
This makes this task Ubuntu version agnostic
This commit is contained in:
parent
043286087a
commit
e27d11a311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user