lmn-client/installbox.yml
2018-06-09 12:09:08 +03:00

32 lines
988 B
YAML

---
# This playbook deploys the installbox on a minimal installation.
- name: apply configuration to the installbox
hosts: all
remote_user: ansible
become: yes
vars:
if_lan: "" # ← interface name here, like: ens3 or enp2s0"
if_wan: "{{ ansible_default_ipv4.interface }}"
hostname: "{{ ansible_hostname }}"
ipaddr_lan: 192.168.0.10
dhcp_range: 192.168.0.50,192.168.0.150,2h
tftp_root: "/var/lib/tftpboot"
deb_mirror: "ftp.debian.org"
di_dist: "stretch"
repo_dir: "/home/ansible/kiosk"
pre_tasks:
- name: validate if interface is available
fail:
msg: "Interface {{ if_lan }} does not exist or is already used."
when: if_lan not in ansible_interfaces or if_lan == if_wan
roles:
- up2date-debian
- two-interface-shorewall
- dhcp-dns-dnsmasq
- transparent-squid
- tftp-netboot-installer
- preseed-installer
# - installbox2kiosk # enable this to install kiosk automatically