31 lines
771 B
YAML
31 lines
771 B
YAML
|
- 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
|