diff options
author | clarkzjw <[email protected]> | 2023-01-19 20:56:52 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-19 20:56:52 -0800 |
commit | 1fce024be20034ad4eef7646594eef0fbcc1b64e (patch) | |
tree | 49c949a6c8b9b8e35ae0481c88d440e1d26a45ee | |
parent | 908af8393d8f566a79f27314c2a682e365dc1090 (diff) | |
download | homelab-1fce024be20034ad4eef7646594eef0fbcc1b64e.tar.gz |
bia: FreeBSD setup
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 | |||
3 | Hostname: bia | ||
4 | Usage: cgit-web | ||
5 | |||
6 | ## Step | ||
7 | |||
8 | ### Setup | ||
9 | |||
10 | ```bash | ||
11 | ansible-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] | ||
2 | host_key_checking = False | ||
3 | transport = ssh | ||
4 | remote_user = clarkzjw | ||
5 | roles_path = roles | ||
6 | inventory = inventory | ||
7 | force_color = True | ||
8 | interpreter_python = auto_silent | ||
9 | |||
10 | [connection] | ||
11 | pipelining = True | ||
12 | |||
13 | [privilege_escalation] | ||
14 | become = 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 @@ | |||
1 | all: | ||
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 | --- | ||
2 | collections: | ||
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 | ||