From aaafece287102027002c4ca78d474bcc8a80ed66 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Fri, 24 Nov 2017 12:50:45 -0500 Subject: [PATCH] turns out apt_repository needs quotes --- roles/common/tasks/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 0bc3e0c..e994a34 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -16,9 +16,12 @@ notify: - restart rsyslog - name: Add Nodesource apt key - apt_key: url=https://deb.nodesource.com/gpgkey/nodesource.gpg.key state=present -- name: Add Nodesource apt repository - apt_repository: repo=deb https://deb.nodesource.com/node_6.x xenial main state=present + apt_key: url="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" state=present +- 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" - name: Add Yarnpkg apt key apt_key: url=https://dl.yarnpkg.com/debian/pubkey.gpg state=present - name: Add Yarnpkg apt repository