Add NetBSD tasks

This commit is contained in:
Anthony Rose 2019-11-10 17:05:01 +00:00
parent 2f9f5e3e1a
commit bc5cd66b60
4 changed files with 24 additions and 0 deletions

View file

@ -5,3 +5,5 @@
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
- include: freebsd.yml - include: freebsd.yml
when: ansible_distribution == 'FreeBSD' when: ansible_distribution == 'FreeBSD'
- include: netbsd.yml
when: ansible_distribution == 'NetBSD'

View file

@ -0,0 +1,6 @@
---
- name: Install NetBSD GUI packages
become: true
pkgin:
name: motif,vim-gtk3
state: present

View file

@ -5,6 +5,8 @@
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
- include: freebsd.yml - include: freebsd.yml
when: ansible_distribution == 'FreeBSD' when: ansible_distribution == 'FreeBSD'
- include: netbsd.yml
when: ansible_distribution == 'NetBSD'
- include: modules.yml - include: modules.yml
when: ansible_system == 'Linux' when: ansible_system == 'Linux'
- include: ssh.yml - include: ssh.yml

View file

@ -0,0 +1,14 @@
---
- name: Install NetBSD CLI packages
become: true
pkgin:
name: git,gnupg2,mc,mozilla-rootcerts-openssl,nmap,openvpn,pkgin,py37-pip,python37,sqlite3,sudo,tmux,vim,zsh
state: present
- name: Enable wheel group to use sudo
become: true
lineinfile:
path: /usr/pkg/etc/sudoers.d/wheel
regexp: 'wheel'
line: '%wheel ALL=(ALL) ALL'
create: yes
mode: '0644'