workstation/roles/netbsd/tasks/packages-cli.yml
2019-11-23 13:43:30 +00:00

36 lines
774 B
YAML

---
- name: Configure pkg to ignore OSABI
become: true
lineinfile:
path: /etc/pkg_install.conf
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:
name: '{{ packages }}'
state: present
vars:
packages:
- ansible
- git
- gnupg2
- mc
- mozilla-rootcerts-openssl
- nmap
- openvpn
- pkgin
- py37-pip
- python37
- ruby
- sqlite3
- sudo
- zsh