1
0
IaC/ansible/playbooks/k8s.yaml

30 lines
434 B
YAML
Raw Normal View History

2022-10-23 02:58:01 -04:00
---
2022-10-23 09:54:34 -04:00
- name: create the vms
hosts: hv00
gather_facts: true
become: true
roles:
- k8s_vms
2022-10-23 02:58:01 -04:00
- name: python bootstrap
hosts: k8s
gather_facts: false
become: true
roles:
- python-install
2022-10-23 09:54:34 -04:00
- name: vm hardening
2022-10-23 02:58:01 -04:00
hosts: k8s
gather_facts: true
become: true
roles:
- sshd
2022-10-23 09:54:34 -04:00
- firewall
2022-10-23 02:58:01 -04:00
- name: configure control plane
hosts: k8s_control
gather_facts: true
become: false
roles:
- k8s_control