Initial commit

This commit is contained in:
Peter 2018-03-05 16:06:51 +00:00
commit 7b054ef2ec
Signed by: pludi
GPG Key ID: CFBA360E696EDC99
2 changed files with 33 additions and 0 deletions

30
doctor.yml Normal file
View 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
View File

@ -0,0 +1,3 @@
Defaults passprompt="[sudo] Password for %p: "
%wheel ALL=(ALL) ALL