k8s-clusters/ansible/k3s-node/tasks/prepare-host.yml

24 lines
650 B
YAML
Raw Normal View History

2022-02-06 15:52:03 -06:00
# arch linux
2022-02-07 21:07:07 -06:00
- include_tasks: ./create-aur-builder-user.yml
2022-02-06 15:52:03 -06:00
when: ansible_facts.os_family == 'Archlinux'
2022-02-07 21:07:07 -06:00
- include_tasks: ./install-aur-helper.yml
2022-02-06 15:52:03 -06:00
when: ansible_facts.os_family == 'Archlinux'
2022-02-07 21:07:07 -06:00
vars:
aur_helper_pkg: paru-bin
2022-02-06 15:52:03 -06:00
# common
- include_tasks: ./use-firewalld-with-iptables.yml
2022-02-07 21:07:07 -06:00
# - 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
2022-02-06 15:52:03 -06:00
2022-02-07 21:07:07 -06:00
- include_tasks: ./upgrade-all-packages.yml
vars:
aur_helper_command: paru
2022-02-06 15:52:03 -06:00
# _todo: net.ipv4.ip_forward = 1