From 1fce024be20034ad4eef7646594eef0fbcc1b64e Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 19 Jan 2023 20:56:52 -0800 Subject: bia: FreeBSD setup --- clarkzjw.cc/config/bia/ansible/README.md | 12 ++++++++++++ clarkzjw.cc/config/bia/ansible/ansible.cfg | 14 ++++++++++++++ clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml | 3 +++ clarkzjw.cc/config/bia/ansible/requirements.yaml | 6 ++++++ clarkzjw.cc/config/bia/ansible/role.yaml | 3 +++ .../bia/ansible/roles/bsd_init/defaults/main.yaml | 0 .../config/bia/ansible/roles/bsd_init/tasks/main.yaml | 18 ++++++++++++++++++ clarkzjw.cc/config/bia/ansible/setup.yaml | 7 +++++++ 8 files changed, 63 insertions(+) create mode 100644 clarkzjw.cc/config/bia/ansible/README.md create mode 100644 clarkzjw.cc/config/bia/ansible/ansible.cfg create mode 100644 clarkzjw.cc/config/bia/ansible/inventory/hosts.yaml create mode 100644 clarkzjw.cc/config/bia/ansible/requirements.yaml create mode 100644 clarkzjw.cc/config/bia/ansible/role.yaml create mode 100644 clarkzjw.cc/config/bia/ansible/roles/bsd_init/defaults/main.yaml create mode 100644 clarkzjw.cc/config/bia/ansible/roles/bsd_init/tasks/main.yaml create mode 100644 clarkzjw.cc/config/bia/ansible/setup.yaml (limited to 'clarkzjw.cc/config/bia/ansible') 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 @@ +# Bia + +Hostname: bia +Usage: cgit-web + +## Step + +### Setup + +```bash +ansible-playbook setup.yaml -K +``` 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 @@ +[defaults] +host_key_checking = False +transport = ssh +remote_user = clarkzjw +roles_path = roles +inventory = inventory +force_color = True +interpreter_python = auto_silent + +[connection] +pipelining = True + +[privilege_escalation] +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 @@ +all: + hosts: + 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 @@ +--- +collections: + - name: community.general + version: 4.7.0 + - name: ansible.posix + 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 @@ +- hosts: "{{ target }}" + roles: + - 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 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 @@ +- name: Install packages + pkgng: + state: present + name: + - vnstat + - python3 + - iperf3 + - unzip + - gnupg + - rsync + - sudo + - htop + - curl + - tree + - zip + - vim + - zsh + - 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 @@ +- name: Setup FreeBSD + hosts: bia + remote_user: clarkzjw + gather_facts: true + + roles: + - role: bsd_init -- cgit v1.2.3