add roles
This commit is contained in:
parent
32e6e8a2a9
commit
a97b4c0181
2
group_vars/mckay.yaml
Normal file
2
group_vars/mckay.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
default_gateway: "192.168.69.254"
|
2
group_vars/woolsey.yaml
Normal file
2
group_vars/woolsey.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
default_gateway: "192.168.69.1"
|
@ -2,13 +2,9 @@
|
|||||||
all:
|
all:
|
||||||
vars:
|
vars:
|
||||||
ansible_become: true
|
ansible_become: true
|
||||||
ansible_user: ansible
|
ansible_user: tormakris
|
||||||
hosts:
|
children:
|
||||||
kube-master-luna:
|
woolsey:
|
||||||
legit_uplink:
|
hosts:
|
||||||
interface: enp1s0
|
testhost:
|
||||||
gateway: 192.168.100.1
|
ansible_host: 192.168.69.102
|
||||||
address: 192.168.100.10
|
|
||||||
legit_cluster_network:
|
|
||||||
interface: enp8s0
|
|
||||||
address: 192.168.8.10
|
|
||||||
|
32
prepare.yaml
32
prepare.yaml
@ -1,32 +0,0 @@
|
|||||||
---
|
|
||||||
- name: "prepare vms for kmlabs-k8s-cluster"
|
|
||||||
hosts: all
|
|
||||||
handlers:
|
|
||||||
- name: "netplanapply"
|
|
||||||
command: netplan apply
|
|
||||||
async: 45
|
|
||||||
poll: 0
|
|
||||||
|
|
||||||
- name: "restartkubelet"
|
|
||||||
systemd:
|
|
||||||
name: kubelet
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- name: "do apt stuff"
|
|
||||||
import_tasks: tasks/apt.yaml
|
|
||||||
|
|
||||||
- name: "disable cloudinit"
|
|
||||||
import_tasks: tasks/disable-cloudinit.yaml
|
|
||||||
|
|
||||||
- name: "remove snap"
|
|
||||||
import_tasks: tasks/remove-snap.yaml
|
|
||||||
|
|
||||||
- name: "clean motd"
|
|
||||||
import_tasks: tasks/clean-motd.yaml
|
|
||||||
|
|
||||||
- name: "fix dns"
|
|
||||||
import_tasks: tasks/fix-dns-resolution.yaml
|
|
||||||
|
|
||||||
- name: "setup networking"
|
|
||||||
import_tasks: tasks/static-networking.yaml
|
|
Loading…
Reference in New Issue
Block a user