From 4bab7edf283d1357816cbbf7a6b94e0280f1078f Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 22 Oct 2026 23:03:44 +0300 Subject: chore: setup ansible --- provision.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 provision.yml (limited to 'provision.yml') diff --git a/provision.yml b/provision.yml new file mode 100644 index 0000000..ea2e5b3 --- /dev/null +++ b/provision.yml @@ -0,0 +1,28 @@ +--- +- name: Bootstrap Alpine Linux + hosts: alpine + gather_facts: false + become: true + + tasks: + - name: Install Python 3 + ansible.builtin.raw: test -x /usr/bin/python3 || apk add --no-cache python3 + register: bootstrap_python + changed_when: bootstrap_python.stdout != "" + +- name: Provision VPS + hosts: vps + become: true + roles: + - role: base + vars: + hostname: "vps" + username: "cmmm" + nameservers: + - "212.227.123.16" + - "212.227.123.17" + repositories: + - "https://dl-cdn.alpinelinux.org/alpine/edge/main" + - "https://dl-cdn.alpinelinux.org/alpine/edge/community" + - "https://dl-cdn.alpinelinux.org/alpine/edge/testing" + - "/home/cmmm/packages/testing" -- cgit v1.3.1