File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 1
- direnv 2.32.1
2
- python 3.10.6
1
+ python 3.11.2
Original file line number Diff line number Diff line change 1
1
---
2
2
# by default this playbook will add the ip address of your endpoint
3
3
# pass '-e host_name="my-domain.example.edu"' for it to work best
4
+ #
4
5
- name : deploy microk8s
5
6
gather_facts : true
6
7
hosts : " {{ host_ip | default('inventory_hostname') }}"
12
13
tasks :
13
14
# ===========================================
14
15
# Install pre-requisites (RedHat)
16
+ #
15
17
- name : microk8s | enable epel-release (RedHat)
16
18
ansible.builtin.dnf :
17
19
name : " {{ item }}"
21
23
- epel-release
22
24
- python3
23
25
- python3-pip
26
+ - python3-firewall
24
27
become : true
25
28
when :
26
29
- ansible_os_family == "RedHat"
43
46
- ansible_os_family == "RedHat"
44
47
become : true
45
48
49
+ - name : microk8s | open microk8s web service
50
+ ansible.posix.firewalld :
51
+ service : " {{ item }}"
52
+ permanent : true
53
+ immediate : true
54
+ state : enabled
55
+ loop :
56
+ - https
57
+ - http
58
+ when :
59
+ - ansible_os_family == "RedHat"
60
+
61
+ - name : microk8s | open microk8s firewall ports
62
+ ansible.posix.firewalld :
63
+ port : " {{ item }}"
64
+ permanent : true
65
+ immediate : true
66
+ state : enabled
67
+ loop :
68
+ - 16443/tcp
69
+ - 10250/tcp
70
+ - 10255/tcp
71
+ - 25000/tcp
72
+ - 12379/tcp
73
+ - 10257/tcp
74
+ - 10259/tcp
75
+ - 19001/tcp
76
+ - 4789/udp
77
+ when :
78
+ - ansible_os_family == "RedHat"
79
+
46
80
# ===========================================
47
81
# Install microk8s
82
+ #
48
83
- name : microk8s | ensure dependencies are installed (Debian)
49
84
ansible.builtin.apt :
50
85
name :
You can’t perform that action at this time.
0 commit comments