aboutsummaryrefslogtreecommitdiff
path: root/provision.yml
diff options
context:
space:
mode:
Diffstat (limited to 'provision.yml')
-rw-r--r--provision.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/provision.yml b/provision.yml
new file mode 100644
index 0000000..ea2e5b3
--- /dev/null
+++ b/provision.yml
@@ -0,0 +1,28 @@
1---
2- name: Bootstrap Alpine Linux
3 hosts: alpine
4 gather_facts: false
5 become: true
6
7 tasks:
8 - name: Install Python 3
9 ansible.builtin.raw: test -x /usr/bin/python3 || apk add --no-cache python3
10 register: bootstrap_python
11 changed_when: bootstrap_python.stdout != ""
12
13- name: Provision VPS
14 hosts: vps
15 become: true
16 roles:
17 - role: base
18 vars:
19 hostname: "vps"
20 username: "cmmm"
21 nameservers:
22 - "212.227.123.16"
23 - "212.227.123.17"
24 repositories:
25 - "https://dl-cdn.alpinelinux.org/alpine/edge/main"
26 - "https://dl-cdn.alpinelinux.org/alpine/edge/community"
27 - "https://dl-cdn.alpinelinux.org/alpine/edge/testing"
28 - "/home/cmmm/packages/testing"