software-infrastructure/site.yml
2024-07-03 19:35:21 +00:00

35 lines
1.0 KiB
YAML

---
# Master playbook for eom.dev
- name: Initial OS configuration
hosts: all
become: true
roles:
- role: ericomeehan.save_initial_configuration
- role: ericomeehan.configure_network
- name: Prepare cluster environments
hosts: clusters
become: true
pre_tasks:
- name: Update sysctl configuration to enable IPv4 packet forwarding
lineinfile:
path: /etc/sysctl.conf
line: 'net.ipv4.ip_forward = 1'
state: present
- name: Update sysctl configuration to enable IPv6 packet forwarding
lineinfile:
path: /etc/sysctl.conf
line: 'net.ipv6.conf.all.forwarding = 1'
state: present
- name: Reload sysctl configuration
command: sysctl --system
- name: Enable br_netfilter kernel module
command: modprobe br_netfilter
- name: Add the module to a configuration file for persistence
lineinfile:
path: /etc/modules-load.d/modules.conf
line: "br_netfilter"
roles:
- role: geerlingguy.containerd
- role: geerlingguy.kubernetes