Add NetBSD tasks
This commit is contained in:
parent
2f9f5e3e1a
commit
bc5cd66b60
4 changed files with 24 additions and 0 deletions
|
@ -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'
|
||||||
|
|
6
roles/distro-gui/tasks/netbsd.yml
Normal file
6
roles/distro-gui/tasks/netbsd.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Install NetBSD GUI packages
|
||||||
|
become: true
|
||||||
|
pkgin:
|
||||||
|
name: motif,vim-gtk3
|
||||||
|
state: present
|
|
@ -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
|
||||||
|
|
14
roles/distro/tasks/netbsd.yml
Normal file
14
roles/distro/tasks/netbsd.yml
Normal 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'
|
Loading…
Reference in a new issue