---
# Inventar mit gruppierten SSH-Schlüsseln

all:
  children:
    origin_servers:
      hosts:
        origin1.example.de:
          ansible_host: 192.168.1.10
        origin2.example.de:
          ansible_host: 192.168.1.11
      vars:
        ansible_ssh_private_key_file: ~/.ssh/origin_servers_key
        
    cdn_nodes:
      children:
        primary_nodes:
          hosts:
            cdn-fra1.example.de:
              ansible_host: 10.0.1.10
              city: "Frankfurt"
              region: "Hessen"
              tier: "primary"
              cache_size: "50g"
          vars:
            ansible_ssh_private_key_file: ~/.ssh/cdn_primary_key
            
        secondary_nodes:
          hosts:
            cdn-ham1.example.de:
              ansible_host: 10.0.2.10
              city: "Hamburg"
              region: "Hamburg"
              tier: "secondary"
              cache_size: "20g"
            cdn-muc1.example.de:
              ansible_host: 10.0.3.10
              city: "München"
              region: "Bayern"
              tier: "secondary"
              cache_size: "20g"
          vars:
            ansible_ssh_private_key_file: ~/.ssh/cdn_secondary_key

      vars:
        ansible_user: root
        ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
