Initial commit
This commit is contained in:
commit
7b054ef2ec
30
doctor.yml
Normal file
30
doctor.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
- hosts:
|
||||||
|
become: yes
|
||||||
|
tasks:
|
||||||
|
- name: Update package cache
|
||||||
|
command: pkg update
|
||||||
|
- name: Update ports
|
||||||
|
command: "portsnap fetch && portsnap update"
|
||||||
|
- name: Install useful stuff
|
||||||
|
package:
|
||||||
|
name: [htop, sudo, tmux, vim-lite, bash]
|
||||||
|
state: present
|
||||||
|
- name: Adjust user
|
||||||
|
user:
|
||||||
|
name: peter
|
||||||
|
groups: [peter, wheel]
|
||||||
|
shell: /usr/local/bin/bash
|
||||||
|
state: present
|
||||||
|
- name: Install extra stuff
|
||||||
|
package:
|
||||||
|
name: [git, gnupg]
|
||||||
|
state: present
|
||||||
|
- name: Adjust sudoers
|
||||||
|
copy:
|
||||||
|
src: files/user.sudoers.d
|
||||||
|
dest: /usr/local/etc/sudoers.d/user
|
||||||
|
owner: root
|
||||||
|
group: wheel
|
||||||
|
mode: 0640
|
||||||
|
|
||||||
|
# vim: smartindent autoindent shiftwidth=2 tabstop=2 expandtab
|
3
files/user.sudoers.d
Normal file
3
files/user.sudoers.d
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Defaults passprompt="[sudo] Password for %p: "
|
||||||
|
|
||||||
|
%wheel ALL=(ALL) ALL
|
Loading…
Reference in a new issue