-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.yml
42 lines (33 loc) · 945 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- name: Update to latest patch level
shell: freebsd-update fetch --not-running-from-cron || freebsd-update install || true
- name: Remove pkg directory
file:
state: absent
path: /usr/local/etc/pkg
- name: Update pkg database
shell: IGNORE_OSVERSION=yes pkg update -f
- name: Install or upgrade required packages
shell: pkg install -y python go gmake git-lite bash curl tmux sudo gtar
- name: Set hostname 1/2 - hostname
shell: "hostname {{ hostname }}"
- name: Set hostname 2/2 - /etc/rc.conf
lineinfile:
dest: /etc/rc.conf
create: yes
owner: root
group: "{{ root_group }}"
mode: 664
regexp: '^hostname'
line: "hostname=\"{{ hostname }}\""
# configure bash
- lineinfile:
dest: /etc/fstab
create: yes
owner: root
group: "{{ root_group }}"
mode: 664
regexp: '^fdesc'
line: 'fdesc /dev/fd fdescfs rw 0 0'
- name: Mount fdesc filesystem
shell: mount /dev/fd