aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-19 20:56:52 -0800
committerclarkzjw <[email protected]>2023-01-19 20:56:52 -0800
commit1fce024be20034ad4eef7646594eef0fbcc1b64e (patch)
tree49c949a6c8b9b8e35ae0481c88d440e1d26a45ee
parent908af8393d8f566a79f27314c2a682e365dc1090 (diff)
downloadhomelab-1fce024be20034ad4eef7646594eef0fbcc1b64e.tar.gz
bia: FreeBSD setup
-rw-r--r--clarkzjw.cc/config/atlas/ansible/roles/calibre_web/defaults/main.yaml0
-rw-r--r--clarkzjw.cc/config/atlas/ansible/roles/calibre_web/tasks/main.yaml0
-rw-r--r--clarkzjw.cc/config/bia/ansible/README.md12
-rw-r--r--clarkzjw.cc/config/bia/ansible/ansible.cfg14
-rw-r--r--clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml3
-rw-r--r--clarkzjw.cc/config/bia/ansible/requirements.yaml6
-rw-r--r--clarkzjw.cc/config/bia/ansible/role.yaml3
-rw-r--r--clarkzjw.cc/config/bia/ansible/roles/bsd_init/defaults/main.yaml0
-rw-r--r--clarkzjw.cc/config/bia/ansible/roles/bsd_init/tasks/main.yaml18
-rw-r--r--clarkzjw.cc/config/bia/ansible/setup.yaml7
10 files changed, 63 insertions, 0 deletions
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/defaults/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/defaults/main.yaml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/defaults/main.yaml
diff --git a/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/tasks/main.yaml b/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/tasks/main.yaml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/clarkzjw.cc/config/atlas/ansible/roles/calibre_web/tasks/main.yaml
diff --git a/clarkzjw.cc/config/bia/ansible/README.md b/clarkzjw.cc/config/bia/ansible/README.md
new file mode 100644
index 0000000..f87e3bd
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/README.md
@@ -0,0 +1,12 @@
1# Bia
2
3Hostname: bia
4Usage: cgit-web
5
6## Step
7
8### Setup
9
10```bash
11ansible-playbook setup.yaml -K
12```
diff --git a/clarkzjw.cc/config/bia/ansible/ansible.cfg b/clarkzjw.cc/config/bia/ansible/ansible.cfg
new file mode 100644
index 0000000..e0f6c28
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/ansible.cfg
@@ -0,0 +1,14 @@
1[defaults]
2host_key_checking = False
3transport = ssh
4remote_user = clarkzjw
5roles_path = roles
6inventory = inventory
7force_color = True
8interpreter_python = auto_silent
9
10[connection]
11pipelining = True
12
13[privilege_escalation]
14become = True
diff --git a/clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml b/clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml
new file mode 100644
index 0000000..3feea5a
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml
@@ -0,0 +1,3 @@
1all:
2 hosts:
3 bia:
diff --git a/clarkzjw.cc/config/bia/ansible/requirements.yaml b/clarkzjw.cc/config/bia/ansible/requirements.yaml
new file mode 100644
index 0000000..33f6117
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/requirements.yaml
@@ -0,0 +1,6 @@
1---
2collections:
3 - name: community.general
4 version: 4.7.0
5 - name: ansible.posix
6 version: 1.3.0
diff --git a/clarkzjw.cc/config/bia/ansible/role.yaml b/clarkzjw.cc/config/bia/ansible/role.yaml
new file mode 100644
index 0000000..ab3fca5
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/role.yaml
@@ -0,0 +1,3 @@
1- hosts: "{{ target }}"
2 roles:
3 - role: "{{ role }}"
diff --git a/clarkzjw.cc/config/bia/ansible/roles/bsd_init/defaults/main.yaml b/clarkzjw.cc/config/bia/ansible/roles/bsd_init/defaults/main.yaml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/roles/bsd_init/defaults/main.yaml
diff --git a/clarkzjw.cc/config/bia/ansible/roles/bsd_init/tasks/main.yaml b/clarkzjw.cc/config/bia/ansible/roles/bsd_init/tasks/main.yaml
new file mode 100644
index 0000000..360e5e6
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/roles/bsd_init/tasks/main.yaml
@@ -0,0 +1,18 @@
1- name: Install packages
2 pkgng:
3 state: present
4 name:
5 - vnstat
6 - python3
7 - iperf3
8 - unzip
9 - gnupg
10 - rsync
11 - sudo
12 - htop
13 - curl
14 - tree
15 - zip
16 - vim
17 - zsh
18 - git
diff --git a/clarkzjw.cc/config/bia/ansible/setup.yaml b/clarkzjw.cc/config/bia/ansible/setup.yaml
new file mode 100644
index 0000000..e42c175
--- /dev/null
+++ b/clarkzjw.cc/config/bia/ansible/setup.yaml
@@ -0,0 +1,7 @@
1- name: Setup FreeBSD
2 hosts: bia
3 remote_user: clarkzjw
4 gather_facts: true
5
6 roles:
7 - role: bsd_init
Powered by cgit v1.2.3 (git 2.41.0)