From 06e4df5e794a9980cf65f24c193ecf14cb837d0f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 23 Nov 2019 12:43:51 +0000 Subject: [PATCH] Add PKG_PATH --- roles/netbsd/tasks/packages-cli.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/netbsd/tasks/packages-cli.yml b/roles/netbsd/tasks/packages-cli.yml index 27ee8d8..41720ef 100644 --- a/roles/netbsd/tasks/packages-cli.yml +++ b/roles/netbsd/tasks/packages-cli.yml @@ -6,6 +6,13 @@ regexp: '^CHECK_OSABI=' line: 'CHECK_OSABI=no' create: yes +- name: Configure PKG_PATH + become: true + lineinfile: + path: /etc/pkg_install.conf + regexp: '^PKG_PATH=' + line: 'PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/{{ ansible_machine }}/{{ ansible_distribution_release }}/All' + create: yes - name: Install CLI packages become: true pkgin: