# inventory.yml --- all: vars: _i: dcontroller: "dcontroller" domain_name: "rgoncalves.se" dns: - 8.8.8.8 - 8.8.4.4 packages: zsh: "zsh" curl: "curl" tmux: "tmux" wget: "wget" figlet: "figlet" neovim: "neovim" group: root: "root" ansible_port: "22" ansible_python_interpreter: "/usr/bin/python3" # --- # Declaration of all hosts # --- hosts: # SERVER for domain controller dcontroller: ansible_host: "dcontroller" ip: { in: "10.8.0.1", out: "185.203.114.234" } services: - { name: "ssh", proto: "tcp", port: "22", public: "true" } - { name: "httpd", proto: "tcp", port: "80", public: "true", domain: "www" } - { name: "wireguard", proto: "udp", port: "53", public: "true" } # SERVER for vm stack0: ansible_host: "stack0" ip: { in: "10.8.0.40", out: "192.168.5.40" } services: - { name: "ssh", proto: "tcp", port: "22", public: "false" } - { name: "nextcloud", proto: "udp", port: "80", public: "true", domain: "cloud" } vms: - { name: "vm0", iso: "alpine", memory: "2G", size: "4G", enabled: "true" } - { name: "vm1", iso: "alpine", memory: "2G", size: "4G", enabled: "true" } - { name: "vm2", iso: "alpine", memory: "2G", size: "4G", enabled: "true" } - { name: "vm3", iso: "alpine", memory: "2G", size: "4G", enabled: "true" } - { name: "vm4", iso: "alpine", memory: "2G", size: "4G", enabled: "true" } vm: enabled: "true" # SERVER for personnal file sync emb0: ansible_host: "emb0" ip: { in: "10.8.0.41", out: "192.168.5.41" } services: - { name: "ssh", proto: "tcp", port: "22", public: "false" } - { name: "syncthing", proto: "tcp", port: "8384", public: "false" } vm0: ansible_host: "vm0" vm1: ansible_host: "vm1" # --- # Declaration of groups # --- children: # GROUP server servers: hosts: dcontroller: stack0: emb0: vm: hosts: vm-stack0-minecraft: vm-stack0-nextcloud: # GROUP openbsd openbsd: vars: ansible_become_method: "doas" ansible_python_interpreter: "/usr/local/bin/python3" group_root: "wheel" path_zsh: "/usr/local/bin/zsh" hosts: dcontroller: stack0: # GROUP debian debian: vars: group_root: "root" path_zsh: "/bin/zsh" hosts: emb0: # GROUP alpine alpine: hosts: vm-stack0-minecraft: vm-stack0-nextcloud: