--- # 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 - role: ericomeehan.nvidia_driver_debian when: nvidia == true and ansible_os_family == 'Debian' tasks: