-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdebian.yml
56 lines (47 loc) · 975 Bytes
/
debian.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
- name: Install utilities
apt:
name:
- make
- jq
- wget
- golang
- linux-headers-{{ ansible_kernel }}
state: latest
update_cache: yes
- name: Update system
apt:
upgrade: yes
update_cache: yes
state: latest
- name: Get docker install script
get_url:
url: https://get.docker.com
dest: /tmp/docker-install.sh
mode: 0755
- name: Install docker
shell: /tmp/docker-install.sh
- name: Remove install script
file:
path: /tmp/docker-install.sh
state: absent
- name: Configure docker
user:
name: vagrant
groups: docker
append: true
- name: Enable docker
systemd:
name: docker
state: started
enabled: true
- name: Get k3s install script
get_url:
url: https://get.k3s.io
dest: /tmp/k3s-install.sh
mode: 0755
- name: Install k3s
shell: /tmp/k3s-install.sh --docker
- name: Remove install script
file:
path: /tmp/k3s-install.sh
state: absent