diff --git a/roles/distro-gui/tasks/main.yml b/roles/distro-gui/tasks/main.yml index a3b5dd5..cab8681 100644 --- a/roles/distro-gui/tasks/main.yml +++ b/roles/distro-gui/tasks/main.yml @@ -5,3 +5,5 @@ when: ansible_distribution == 'Ubuntu' - include: freebsd.yml when: ansible_distribution == 'FreeBSD' +- include: netbsd.yml + when: ansible_distribution == 'NetBSD' diff --git a/roles/distro-gui/tasks/netbsd.yml b/roles/distro-gui/tasks/netbsd.yml new file mode 100644 index 0000000..2eb76af --- /dev/null +++ b/roles/distro-gui/tasks/netbsd.yml @@ -0,0 +1,6 @@ +--- +- name: Install NetBSD GUI packages + become: true + pkgin: + name: motif,vim-gtk3 + state: present diff --git a/roles/distro/tasks/main.yml b/roles/distro/tasks/main.yml index 5aa8445..7caa732 100644 --- a/roles/distro/tasks/main.yml +++ b/roles/distro/tasks/main.yml @@ -5,6 +5,8 @@ when: ansible_distribution == 'Ubuntu' - include: freebsd.yml when: ansible_distribution == 'FreeBSD' +- include: netbsd.yml + when: ansible_distribution == 'NetBSD' - include: modules.yml when: ansible_system == 'Linux' - include: ssh.yml diff --git a/roles/distro/tasks/netbsd.yml b/roles/distro/tasks/netbsd.yml new file mode 100644 index 0000000..f0ede9a --- /dev/null +++ b/roles/distro/tasks/netbsd.yml @@ -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'