Files
2026-10-18 12:34:19 +04:00

38 lines
751 B
YAML

---
- name: configure via pct
hosts: router
gather_facts: false
roles:
- ifupdown2
- authorized-key-root
- name: configure over ssh
hosts: router
vars:
ansible_connection: ssh
ansible_host: "{{ ip }}"
ansible_user: root
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
ansible_ssh_common_args: >-
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
-o PreferredAuthentications=publickey,password
-o PubkeyAuthentication=yes
roles:
- sshd
- timezone
- locales
- sysctl
- stunnel4
- openvpn
- xray-core
- logrotate
- dnsmasq
- xray-lists
- unbound
- resolv
- nftables
- udp-broadcast-relay
- netutils
- zabbix-agent2