k8s-clusters/ansible/k3s-node/tasks/prepare-host.yml
2022-02-06 15:52:03 -06:00

20 lines
548 B
YAML

# arch linux
- include_tasks: ./create-aur-builder.yml
when: ansible_facts.os_family == 'Archlinux'
- include_tasks: ./install-yay-bin.yml
when: ansible_facts.os_family == 'Archlinux'
# common
- include_tasks: ./use-firewalld-with-iptables.yml
- name: open http and https ports in firewalld
ansible.builtin.command: >
sudo firewall-cmd --add-port=443/tcp --permanent \
&& sudo firewall-cmd --add-port=80/tcp --permanent \
&& sudo firewall-cmd --reload
- include_tasks: ./update-all.yml
# _todo: net.ipv4.ip_forward = 1